Skip to content

Commit 14b2cc1

Browse files
committed
Update .pre-commit-config.yaml
1 parent 3c7d68c commit 14b2cc1

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,20 @@ repos:
2323
- id: pylint
2424
name: pylint (library code)
2525
types: [python]
26-
exclude: "^(docs/|examples/|tests/|setup.py$)"
2726
args:
2827
- --disable=consider-using-f-string
29-
- repo: local
30-
hooks:
31-
- id: pylint_examples
32-
name: pylint (examples code)
28+
exclude: "^(docs/|examples/|tests/|setup.py$)"
29+
- id: pylint
30+
name: pylint (example code)
3331
description: Run pylint rules on "examples/*.py" files
34-
entry: /usr/bin/env bash -c
32+
types: [python]
33+
files: "^examples/"
3534
args:
36-
- ([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py");
37-
do pylint --disable=missing-docstring,invalid-name,consider-using-f-string
38-
$example; done)
39-
language: system
40-
- id: pylint_tests
41-
name: pylint (tests code)
35+
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
36+
- id: pylint
37+
name: pylint (test code)
4238
description: Run pylint rules on "tests/*.py" files
43-
entry: /usr/bin/env bash -c
39+
types: [python]
40+
files: "^tests/"
4441
args:
45-
- ([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint
46-
--disable=missing-docstring $test; done)
47-
language: system
42+
- --disable=missing-docstring,consider-using-f-string,duplicate-code

0 commit comments

Comments
 (0)