我想在预提交中配置黑色并从检查任何迁移文件夹中排除预提交。
我的 pyproject.toml 看起来像这样
[tool.black]
line-length = 79
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| ^migrations/
'''
我还配置了预提交。但是在运行pre-commit run --all-files
黑色格式迁移文件夹时,我如何配置黑色