diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffb0724..0a86604 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.21 + rev: v0.16.0 hooks: - id: ruff args: [--fix] diff --git a/tests/test_css.py b/tests/test_css.py index 643492e..80802d1 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 1663de7..f085931 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 e9133ea..8e88d63 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 ------------------------------------------