Skip to content

Commit

Permalink
pre-commit: run most python checks on helpers/python too
Browse files Browse the repository at this point in the history
Refs #396
  • Loading branch information
scop committed Mar 17, 2020
1 parent 900824d commit 5ed40e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -3,26 +3,33 @@ repos:
rev: 19.10b0
hooks:
- id: black
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
exclude: completions/
args: [--config=test/setup.cfg]
additional_dependencies: [flake8-bugbear==20.1.4]
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
exclude: completions/
args: [--settings-path=test/setup.cfg]
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.770
hooks:
- id: mypy
exclude: completions/
args: [--config-file=test/setup.cfg]
# Intentionally not run on helpers/python (support very old versions)
exclude: completions/
- repo: https://github.com/ryanrhee/shellcheck-py
rev: v0.7.0.1-1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion helpers/python
Expand Up @@ -11,4 +11,4 @@ else:
walker = pkgutil.iter_modules

for mod in walker():
print (mod[1]) # noqa: E211
print(mod[1]) # noqa: E211

0 comments on commit 5ed40e0

Please sign in to comment.