From 0df4f528e51cc1107b370e6b4b0f76446bc3fef1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:36:32 +0000 Subject: [PATCH 1/3] [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: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.14.10) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78f0f087..602df40f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-toml - id: check-json @@ -24,7 +24,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.4 + rev: v0.14.10 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -37,7 +37,7 @@ repos: types_or: [scss, javascript] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell exclude: > From a0b8f829137103555052d6401ffa24466207e5bb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:36:58 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/sphinx_book_theme/header_buttons/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sphinx_book_theme/header_buttons/__init__.py b/src/sphinx_book_theme/header_buttons/__init__.py index 3da1736a..86ed39fb 100644 --- a/src/sphinx_book_theme/header_buttons/__init__.py +++ b/src/sphinx_book_theme/header_buttons/__init__.py @@ -67,7 +67,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree): download_buttons.append( { "type": "link", - "url": f'{pathto("_sources", 1)}/{context.get("ipynb_source")}', + "url": f"{pathto('_sources', 1)}/{context.get('ipynb_source')}", "text": ".ipynb", "icon": "fas fa-code", "tooltip": translation("Download notebook file"), @@ -79,7 +79,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree): download_buttons.append( { "type": "link", - "url": f'{pathto("_sources", 1)}/{context["sourcename"]}', + "url": f"{pathto('_sources', 1)}/{context['sourcename']}", "text": suff, "tooltip": translation("Download source file"), "icon": "fas fa-file", From 1e46e7811df46ccc519d6de24c653e883c98aaa4 Mon Sep 17 00:00:00 2001 From: choldgraf Date: Mon, 22 Dec 2025 09:55:38 -0800 Subject: [PATCH 3/3] Fix pedantic codespell bug --- docs/components/logo.md | 2 +- src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/logo.md b/docs/components/logo.md index 1e7541df..36337b05 100644 --- a/docs/components/logo.md +++ b/docs/components/logo.md @@ -5,4 +5,4 @@ You can customize the logo, title, and favicon of your site. Refer to {external:doc}`the PyData Sphinx Theme branding documentation ` for how to customize the logo and title. -This theme re-uses the same configuration. +This theme reuses the same configuration. diff --git a/src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss b/src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss index b2afd64e..649d6ff1 100644 --- a/src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss +++ b/src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss @@ -15,7 +15,7 @@ /** * The PyData Sphinx Theme box shadow rule - * Copied here in csae we need to re-use. + * Copied here in csae we need to reuse. */ @mixin pst-box-shadow() { box-shadow: