Skip to content

Commit

Permalink
Refs #33476 -- Used black's force-exclude instead of extend-exclude.
Browse files Browse the repository at this point in the history
When using `pre-commit run --all-files`, because the filename is passed
explicitly, the file referred to in `extend-exclude` is not properly
excluded. Use `force-exclude` instead to say we really mean it.

See psf/black#438.
  • Loading branch information
ngnpope authored and carltongibson committed Mar 9, 2022
1 parent 93803a1 commit fa94898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -4,4 +4,4 @@ build-backend = 'setuptools.build_meta:__legacy__'

[tool.black]
target-version = ['py38']
extend-exclude = 'tests/test_runner_apps/tagged/tests_syntax_error.py'
force-exclude = 'tests/test_runner_apps/tagged/tests_syntax_error.py'

0 comments on commit fa94898

Please sign in to comment.