From b5de679f6831e71e36f5bdac77d6f32edd3d8fc9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 16:35:21 +0000 Subject: [PATCH] [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 + 3 files changed, 3 insertions(+) diff --git a/src/sphinx_book_theme/__init__.py b/src/sphinx_book_theme/__init__.py index 379d3afa..0b1ce08f 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