pre-commit: use exclusion instead of ever-growing regex (#382)
This commit is contained in:
parent
3316dce22d
commit
c50b107493
@ -1,19 +1,22 @@
|
|||||||
# Note: don't use this config for your own repositories. Instead, see
|
# Note: don't use this config for your own repositories. Instead, see
|
||||||
# "Version control integration" in README.md.
|
# "Version control integration" in README.md.
|
||||||
|
exclude: ^(blib2to3/|profiling/|tests/data/)
|
||||||
|
repos:
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
name: black
|
name: black
|
||||||
language: system
|
language: system
|
||||||
entry: python3 -m black
|
entry: python3 -m black
|
||||||
files: ^(black|setup|tests/test_black|docs/conf)\.py$
|
types: [python]
|
||||||
- id: flake8
|
- id: flake8
|
||||||
name: flake8
|
name: flake8
|
||||||
language: system
|
language: system
|
||||||
entry: flake8
|
entry: flake8
|
||||||
files: ^(black|setup|tests/test_black)\.py$
|
types: [python]
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy
|
name: mypy
|
||||||
language: system
|
language: system
|
||||||
entry: mypy
|
entry: mypy
|
||||||
files: ^(black|setup|tests/test_black)\.py$
|
types: [python]
|
||||||
|
exclude: ^docs/conf.py
|
||||||
|
Loading…
Reference in New Issue
Block a user