Skip to content

Commit 4e736ca

Browse files
committed
Update .pre-commit-config.yaml
1 parent dcb952a commit 4e736ca

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,20 @@ repos:
2323
- id: pylint
2424
name: pylint (library code)
2525
types: [python]
26+
args:
27+
- --disable=consider-using-f-string
2628
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)
3131
description: Run pylint rules on "examples/*.py" files
32-
entry: /usr/bin/env bash -c
32+
types: [python]
33+
files: "^examples/"
3334
args:
34-
- ([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py");
35-
do pylint --disable=missing-docstring,invalid-name,consider-using-f-string
36-
$example; done)
37-
language: system
38-
- id: pylint_tests
39-
name: pylint (tests code)
35+
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
36+
- id: pylint
37+
name: pylint (test code)
4038
description: Run pylint rules on "tests/*.py" files
41-
entry: /usr/bin/env bash -c
39+
types: [python]
40+
files: "^tests/"
4241
args:
43-
- ([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint
44-
--disable=missing-docstring $test; done)
45-
language: system
42+
- --disable=missing-docstring,consider-using-f-string,duplicate-code

0 commit comments

Comments
 (0)