From 0f8abfaeeed734bc06f1c1422da6c767969931db Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 01:14:13 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/psf/black: 23.9.1 → 24.10.0](https://github.com/psf/black/compare/23.9.1...24.10.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 9304e609915bcc027138bc8fc1033daabd2aaec7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 01:14:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/extensions/check_events.py | 1 + docs/extensions/legacy_redirects.py | 1 + docs/extensions/selective_css.py | 1 + 3 files changed, 3 insertions(+) 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