Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 15, 2022
1 parent 4f6a9cd commit 15fec35
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,20 @@ repos:
- id: pylint
name: pylint (library code)
types: [python]
args:
- --disable=consider-using-f-string
exclude: "^(docs/|examples/|tests/|setup.py$)"
- repo: local
hooks:
- id: pylint_examples
name: pylint (examples code)
- id: pylint
name: pylint (example code)
description: Run pylint rules on "examples/*.py" files
entry: /usr/bin/env bash -c
types: [python]
files: "^examples/"
args:
- ([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py");
do pylint --disable=missing-docstring,invalid-name,consider-using-f-string
$example; done)
language: system
- id: pylint_tests
name: pylint (tests code)
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
- id: pylint
name: pylint (test code)
description: Run pylint rules on "tests/*.py" files
entry: /usr/bin/env bash -c
types: [python]
files: "^tests/"
args:
- ([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint
--disable=missing-docstring $test; done)
language: system
- --disable=missing-docstring,consider-using-f-string,duplicate-code

0 comments on commit 15fec35

Please sign in to comment.