Describe the bug
To Reproduce
With pyproject.toml
[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| \.tox
| \.env.*
| \env
| \.venv
| \.venv2
| venv
| venv2
| _build
| build
| dist
| examples
| docs
)/
'''
And run it with these arguments:
$ black --config="pyproject.toml" .
The resulting error is:
Error: Invalid value for '--exclude': Not a valid regular expression
Environment
- Black's version: 21.12b0
- OS and Python version: macOs BigSur Python 3.8.10
Additional context
No problem with previous versions.
Describe the bug
To Reproduce
With
pyproject.tomlAnd run it with these arguments:
The resulting error is:
Environment
Additional context
No problem with previous versions.