From 8cabef6abffadabaa7b920f2a078fb7a91370b7d Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 4 May 2024 08:28:45 -0700 Subject: [PATCH] Format docs/ and scripts/ in CI --- docs/conf.py | 2 +- pyproject.toml | 7 ++++--- tox.ini | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 29564ef09ee..028df4fd985 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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: diff --git a/pyproject.toml b/pyproject.toml index ee43f282eab..38c4a3ac500 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/tox.ini b/tox.ini index f7357e3b8af..7bc03d05e46 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 =