2021-01-11 21:06:47 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/python/black
|
2021-02-03 21:38:51 +00:00
|
|
|
rev: 20.8b1
|
2021-01-11 21:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/fsfe/reuse-tool
|
2021-02-03 21:38:51 +00:00
|
|
|
rev: v0.12.1
|
2021-01-11 21:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: reuse
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v2.3.0
|
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2021-03-02 21:46:17 +00:00
|
|
|
- repo: https://github.com/pycqa/pylint
|
2021-11-03 18:40:16 +00:00
|
|
|
rev: v2.11.1
|
2021-03-02 21:46:17 +00:00
|
|
|
hooks:
|
|
|
|
- id: pylint
|
|
|
|
name: pylint (library code)
|
|
|
|
types: [python]
|
2021-11-03 18:40:16 +00:00
|
|
|
args:
|
2021-11-08 16:19:36 +00:00
|
|
|
- --disable=consider-using-f-string,duplicate-code
|
2021-11-03 18:40:16 +00:00
|
|
|
exclude: "^(docs/|examples/|tests/|setup.py$)"
|
|
|
|
- id: pylint
|
|
|
|
name: pylint (example code)
|
2021-03-02 21:46:17 +00:00
|
|
|
description: Run pylint rules on "examples/*.py" files
|
2021-11-03 18:40:16 +00:00
|
|
|
types: [python]
|
|
|
|
files: "^examples/"
|
|
|
|
args:
|
|
|
|
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
|
|
|
|
- id: pylint
|
|
|
|
name: pylint (test code)
|
|
|
|
description: Run pylint rules on "tests/*.py" files
|
|
|
|
types: [python]
|
|
|
|
files: "^tests/"
|
|
|
|
args:
|
|
|
|
- --disable=missing-docstring,consider-using-f-string,duplicate-code
|