Skip to content

Commit

Permalink
Use "force-exclude" instead of "exclude"
Browse files Browse the repository at this point in the history
As per psf/black#438 if you don't your excluded files to be formatted when passing filename (e.x. pre-commit), then use "force-exclude". Available in black>=20.8b1
  • Loading branch information
dhvcc authored May 31, 2021
1 parent 31ce884 commit eb41cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pre-commit = "^2.12.0"
[tool.black]
line-length = 99
target-version = ['py37', 'py38']
exclude = '''
force-exclude = '''
(
\.eggs
| \.git
Expand Down

0 comments on commit eb41cc8

Please sign in to comment.