mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
b1005c0e40
When using `pre-commit run --all-files`, files explicitly passed to black are processed even if they don't match the `include` configuration option. For some reason, (only) one of the `*.py-tpl` files is picked up by pre-commit. We can avoid this by explicitly excluding certain patterns of files for the black hook in the pre-commit configuration.
19 lines
388 B
YAML
19 lines
388 B
YAML
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.1.0
|
|
hooks:
|
|
- id: black
|
|
exclude: \.py-tpl$
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.9.3
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: v7.32.0
|
|
hooks:
|
|
- id: eslint
|