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
Original file line number
Diff line number
Diff line change
@@ -17,3 +17,18 @@ repos:
17
17
- id: check-yaml
18
18
- id: end-of-file-fixer
19
19
- id: trailing-whitespace
20
+
- repo: https://github.com/pycqa/pylint
21
+
rev: pylint-2.7.1
22
+
hooks:
23
+
- id: pylint
24
+
name: pylint (library code)
25
+
types: [python]
26
+
exclude: "^(docs/|examples/|setup.py$)"
27
+
- repo: local
28
+
hooks:
29
+
- id: pylint_examples
30
+
name: pylint (examples code)
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 $example; done)']
0 commit comments