소스 검색

Refs #33476 -- Used black's force-exclude instead of extend-exclude.

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 https://github.com/psf/black/issues/438.
Nick Pope 3 년 전
부모
커밋
fa94898034
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pyproject.toml

+ 1 - 1
pyproject.toml

@@ -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'