]> Repositories - Adafruit_Blinka-hackapet.git/blob - .pre-commit-config.yaml
Only read the i2c events if the exist. On the Bananan Pi M5 the ffd1c000.i2c is...
[Adafruit_Blinka-hackapet.git] / .pre-commit-config.yaml
1 # SPDX-FileCopyrightText: 2022 Adafruit
2 #
3 # SPDX-License-Identifier: Unlicense
4
5 repos:
6 -   repo: https://github.com/python/black
7     rev: 22.3.0
8     hooks:
9     - id: black
10       additional_dependencies: ['click==8.0.4']
11 -   repo: https://github.com/fsfe/reuse-tool
12     rev: v0.12.1
13     hooks:
14     - id: reuse
15 -   repo: https://github.com/pre-commit/pre-commit-hooks
16     rev: v2.3.0
17     hooks:
18     -   id: check-yaml
19     -   id: end-of-file-fixer
20     -   id: trailing-whitespace
21 -   repo: https://github.com/pycqa/pylint
22     rev: v2.11.1
23     hooks:
24     -   id: pylint
25         name: pylint (library code)
26         types: [python]
27         files: "^src/"
28         args:
29           - --disable=consider-using-f-string,duplicate-code
30     -   id: pylint
31         name: pylint (example code)
32         description: Run pylint rules on "examples/*.py" files
33         types: [python]
34         files: "^examples/"
35         args:
36         - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
37     -   id: pylint
38         name: pylint (test code)
39         description: Run pylint rules on "tests/*.py" files
40         types: [python]
41         files: "^tests/"
42         args:
43         - --disable=missing-docstring,consider-using-f-string,duplicate-code