From cfc6365ffa03b92f3e75d5f3c72aa7ae4286132e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:42:06 +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.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.6.9) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) --- .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 6d510b0c..21e428cc 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: v4.5.0 + rev: v5.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.1.9 + rev: v0.6.9 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.2.6 + rev: v2.3.0 hooks: - id: codespell exclude: > From 91a8ee0de8fdf023d287e9fddf4cf6555ac6982b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:43:49 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/sphinx_book_theme/__init__.py | 1 + src/sphinx_book_theme/_compile_translations.py | 1 + src/sphinx_book_theme/header_buttons/__init__.py | 1 + tests/sites/base/section1/ntbk.ipynb | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sphinx_book_theme/__init__.py b/src/sphinx_book_theme/__init__.py index b15c1033..f38b8a80 100644 --- a/src/sphinx_book_theme/__init__.py +++ b/src/sphinx_book_theme/__init__.py @@ -1,4 +1,5 @@ """A lightweight book theme based on the pydata sphinx theme.""" + import hashlib import os from pathlib import Path diff --git a/src/sphinx_book_theme/_compile_translations.py b/src/sphinx_book_theme/_compile_translations.py index bee4422b..395556c8 100644 --- a/src/sphinx_book_theme/_compile_translations.py +++ b/src/sphinx_book_theme/_compile_translations.py @@ -1,4 +1,5 @@ """Generate compiled static translation assets for Sphinx.""" + import json import os from pathlib import Path diff --git a/src/sphinx_book_theme/header_buttons/__init__.py b/src/sphinx_book_theme/header_buttons/__init__.py index e18d51c0..6e61c8da 100644 --- a/src/sphinx_book_theme/header_buttons/__init__.py +++ b/src/sphinx_book_theme/header_buttons/__init__.py @@ -1,4 +1,5 @@ """Generate metadata for header buttons.""" + from sphinx.errors import SphinxError from sphinx.locale import get_translation from pydata_sphinx_theme.utils import config_provided_by_user, get_theme_options_dict diff --git a/tests/sites/base/section1/ntbk.ipynb b/tests/sites/base/section1/ntbk.ipynb index cebfdbb6..39cad918 100644 --- a/tests/sites/base/section1/ntbk.ipynb +++ b/tests/sites/base/section1/ntbk.ipynb @@ -21,7 +21,7 @@ } ], "source": [ - "print('hi')" + "print(\"hi\")" ] } ],