I want to configure black in pre-commit and exclude precommit from checking any migrations folder.
My pyproject.toml looks like this
[tool.black]
line-length = 79
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| ^migrations/
'''
I have also configured precommit.
But on running pre-commit run --all-files
Black formats the migration folders also
how can I configure black