diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78f0f087..662545dc 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.2 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: > 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",