diff --git a/pyproject.toml b/pyproject.toml index ee43f28..38c4a3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,9 +12,10 @@ include = '\.pyi?$' extend-exclude = ''' /( # The following are specific to Black, you probably don't want those. - tests/data - | profiling -)/ + tests/data/ + | profiling/ + | scripts/generate_schema.py # Uses match syntax +) ''' # We use the unstable style for formatting Black itself. If you # want bug-free formatting, you should keep this off. If you want diff --git a/scripts/migrate-black.py b/scripts/migrate-black.py index 873e2f8..efd6f3c 100755 --- a/scripts/migrate-black.py +++ b/scripts/migrate-black.py @@ -51,7 +51,7 @@ def blackify(base_branch: str, black_command: str, logger: logging.Logger) -> in "diff", "--binary", "--find-copies", - f"{last_commit}-black..{commit}-black" + f"{last_commit}-black..{commit}-black", ], stdout=PIPE, ) diff --git a/tox.ini b/tox.ini index f7357e3..7bc03d0 100644 --- a/tox.ini +++ b/tox.ini @@ -95,7 +95,7 @@ setenv = PYTHONPATH = {toxinidir}/src skip_install = True commands = pip install -e . - black --check {toxinidir}/src {toxinidir}/tests + black --check {toxinidir}/src {toxinidir}/tests {toxinidir}/docs {toxinidir}/scripts [testenv:generate_schema] setenv = PYTHONWARNDEFAULTENCODING =