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
+9-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ repos:
23
23
- id: pylint
24
24
name: pylint (library code)
25
25
types: [python]
26
-
exclude: "^(docs/|examples/|setup.py$)"
26
+
exclude: "^(docs/|tests/|examples/|setup.py$)"
27
27
- repo: local
28
28
hooks:
29
29
- id: pylint_examples
@@ -32,3 +32,11 @@ repos:
32
32
entry: /usr/bin/env bash -c
33
33
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
34
34
language: system
35
+
- repo: local
36
+
hooks:
37
+
- id: pylint_tests
38
+
name: pylint (tests code)
39
+
description: Run pylint rules on "tests/*.py" files
40
+
entry: /usr/bin/env bash -c
41
+
args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']
0 commit comments