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
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