Skip to content

Commit

Permalink
Format docs/ and scripts/ in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 4, 2024
1 parent f22b243 commit 8cabef6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def handle_include_read(
) -> None:
"""Handler for the include-read sphinx event."""
if parent_docname == "change_log":
content[0] = replace_pr_numbers_with_links(content[0])
content[0] = replace_pr_numbers_with_links(content[0])


def setup(app: Sphinx) -> None:
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 8cabef6

Please sign in to comment.