diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e4e8f7..04f6cea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,13 +2,13 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.10.0 hooks: - id: black diff --git a/docs/extensions/check_events.py b/docs/extensions/check_events.py index 550f7a5..1ee1c69 100644 --- a/docs/extensions/check_events.py +++ b/docs/extensions/check_events.py @@ -1,4 +1,5 @@ """Check events.yaml and blog posts are consistent.""" + from __future__ import annotations from pathlib import Path diff --git a/docs/extensions/legacy_redirects.py b/docs/extensions/legacy_redirects.py index 4ba5428..9dbc74c 100644 --- a/docs/extensions/legacy_redirects.py +++ b/docs/extensions/legacy_redirects.py @@ -3,6 +3,7 @@ The logic works similar to sphinx.rediraffe, but handles adding index.html for end-points. """ + import json from os.path import relpath from pathlib import Path diff --git a/docs/extensions/selective_css.py b/docs/extensions/selective_css.py index c6a9a2d..bae5c6d 100644 --- a/docs/extensions/selective_css.py +++ b/docs/extensions/selective_css.py @@ -1,4 +1,5 @@ """Add CSS selectively to pages""" + from sphinx.application import Sphinx