diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d510b0c0..21e428cc7 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: > diff --git a/src/sphinx_book_theme/__init__.py b/src/sphinx_book_theme/__init__.py index b15c1033a..f38b8a80e 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 bee4422ba..395556c83 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 e18d51c03..6e61c8daf 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 cebfdbb6f..39cad918e 100644 --- a/tests/sites/base/section1/ntbk.ipynb +++ b/tests/sites/base/section1/ntbk.ipynb @@ -21,7 +21,7 @@ } ], "source": [ - "print('hi')" + "print(\"hi\")" ] } ],