Format docs/ and scripts/ in CI (#4348)
This commit is contained in:
parent
f22b2437d5
commit
c801cd60b1
@ -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
|
||||
|
@ -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,
|
||||
)
|
||||
|
2
tox.ini
2
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 =
|
||||
|
Loading…
Reference in New Issue
Block a user