diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffb07244..d959631b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,14 +19,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.21 + rev: v0.16.5 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.3.0 + rev: v2.3.1 hooks: - id: mypy # install sphinx so the hook type-checks with real types, diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f31abd0..12d79e0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,14 +120,14 @@ You can use the `sd_custom_directives` configuration option in your `conf.py` to ```python sd_custom_directives = { - "dropdown-syntax": { - "inherit": "dropdown", - "argument": "Syntax", - "options": { - "color": "primary", - "icon": "code", - }, - } + "dropdown-syntax": { + "inherit": "dropdown", + "argument": "Syntax", + "options": { + "color": "primary", + "icon": "code", + }, + } } ``` diff --git a/docs/css_variables.md b/docs/css_variables.md index e370b162..5180f490 100644 --- a/docs/css_variables.md +++ b/docs/css_variables.md @@ -4,8 +4,8 @@ All colors used by sphinx-design are defined as [CSS variables](https://develope Therefore they can be overriden by adding a `.css` file in a `_static` folder in your projects source folder (see [the sphinx documentation](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_css_files)): ```python -html_static_path = ['_static'] -html_css_files = ['custom.css'] +html_static_path = ["_static"] +html_css_files = ["custom.css"] ``` For colors, there are nine semantic colors that can be defined. diff --git a/tests/test_css.py b/tests/test_css.py index 643492ec..80802d16 100644 --- a/tests/test_css.py +++ b/tests/test_css.py @@ -28,7 +28,7 @@ sys.path.insert(0, str(TOOLS_DIR)) -import generate_css # noqa: E402 +import generate_css def test_artifact_is_up_to_date(): diff --git a/tests/test_icons.py b/tests/test_icons.py index 1663de7c..f0859314 100644 --- a/tests/test_icons.py +++ b/tests/test_icons.py @@ -72,12 +72,12 @@ def test_icon_title_in_toctree(fmt, sphinx_builder): # the resolved toctree, rendered inline in the referring page's body wrapper = re.search( - r'
.*?
', index_html, re.S + r'
.*?
', index_html, re.DOTALL ) assert wrapper, "resolved toctree not found in index.html" region = wrapper.group(0) - entries = re.findall(r'
  • .*?
  • ', region, re.S) + entries = re.findall(r'
  • .*?
  • ', region, re.DOTALL) assert len(entries) == 1, "expected exactly one toctree entry" entry = entries[0] diff --git a/tools/check_css_equivalence.py b/tools/check_css_equivalence.py index e9133ea4..8e88d635 100644 --- a/tools/check_css_equivalence.py +++ b/tools/check_css_equivalence.py @@ -70,7 +70,7 @@ warnings.simplefilter("ignore") # tinycss2 deprecation chatter is not relevant here -import tinycss2 # noqa: E402 +import tinycss2 # Enumerated intentional differences ------------------------------------------