You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for contributing! Before you submit a pull request, please read the following.
6
+
7
+
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://circuitpython.readthedocs.io/en/latest/docs/design_guide.html
8
+
9
+
If your changes are to documentation, please verify that the documentation builds locally by following the steps found here: https://adafru.it/build-docs
10
+
11
+
Before submitting the pull request, make sure you've run Pylint and Black locally on your code. You can do this manually or using pre-commit. Instructions are available here: https://adafru.it/check-your-code
12
+
13
+
Please remove all of this text before submitting. Include an explanation or list of changes included in your PR, as well as, if applicable, a link to any related issues.
Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+15-13
Original file line number
Diff line number
Diff line change
@@ -18,23 +18,25 @@ repos:
18
18
- id: end-of-file-fixer
19
19
- id: trailing-whitespace
20
20
- repo: https://github.com/pycqa/pylint
21
-
rev: pylint-2.7.1
21
+
rev: v2.11.1
22
22
hooks:
23
23
- id: pylint
24
24
name: pylint (library code)
25
25
types: [python]
26
+
args:
27
+
- --disable=consider-using-f-string
26
28
exclude: "^(docs/|examples/|tests/|setup.py$)"
27
-
- repo: local
28
-
hooks:
29
-
- id: pylint_examples
30
-
name: pylint (examples code)
29
+
- id: pylint
30
+
name: pylint (example code)
31
31
description: Run pylint rules on "examples/*.py" files
32
-
entry: /usr/bin/env bash -c
33
-
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)']
description: Run pylint rules on "tests/*.py" files
38
-
entry: /usr/bin/env bash -c
39
-
args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring,consider-using-f-string $test; done)']
0 commit comments