MicroPython_PN532/.pre-commit-config.yaml

43 lines
1.2 KiB
YAML
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
#
# SPDX-License-Identifier: Unlicense
repos:
2022-05-15 16:21:58 +00:00
- repo: https://github.com/python/black
rev: 22.3.0
hooks:
2022-05-15 16:21:58 +00:00
- id: black
- repo: https://github.com/fsfe/reuse-tool
rev: v0.14.0
hooks:
2022-05-15 16:21:58 +00:00
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
2022-05-15 16:21:58 +00:00
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/pylint
rev: v2.11.1
hooks:
2022-05-15 16:21:58 +00:00
- id: pylint
name: pylint (library code)
types: [python]
args:
- --disable=consider-using-f-string
exclude: "^(docs/|examples/|tests/|setup.py$)"
2022-05-15 16:21:58 +00:00
- id: pylint
name: pylint (example code)
description: Run pylint rules on "examples/*.py" files
types: [python]
files: "^examples/"
args:
2022-05-15 16:21:58 +00:00
- --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:
2022-05-15 16:21:58 +00:00
- --disable=missing-docstring,consider-using-f-string,duplicate-code