From 4e6cffe2cb6e16c44ce30d3a53a2bfb61d391941 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:37:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 1 + sphinx_design/__init__.py | 1 + sphinx_design/_compat.py | 1 + sphinx_design/dropdown.py | 1 + tests/test_snippets.py | 1 + 5 files changed, 5 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 1f3d28b..6aa598a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Configuration file for the Sphinx documentation builder.""" + import os project = "Sphinx Design" diff --git a/sphinx_design/__init__.py b/sphinx_design/__init__.py index e7260e3..b4a2b63 100644 --- a/sphinx_design/__init__.py +++ b/sphinx_design/__init__.py @@ -1,4 +1,5 @@ """A sphinx extension for designing beautiful, view size responsive web components.""" + from typing import TYPE_CHECKING __version__ = "0.5.0" diff --git a/sphinx_design/_compat.py b/sphinx_design/_compat.py index d31e631..f1bd875 100644 --- a/sphinx_design/_compat.py +++ b/sphinx_design/_compat.py @@ -1,4 +1,5 @@ """Helpers for cross compatibility across dependency versions.""" + from importlib import resources from typing import Callable, Iterable diff --git a/sphinx_design/dropdown.py b/sphinx_design/dropdown.py index ecd5c46..3e10f55 100644 --- a/sphinx_design/dropdown.py +++ b/sphinx_design/dropdown.py @@ -1,5 +1,6 @@ """Originally Adapted from sphinxcontrib.details.directive """ + from docutils import nodes from docutils.parsers.rst import directives from sphinx.application import Sphinx diff --git a/tests/test_snippets.py b/tests/test_snippets.py index ee9e280..987b727 100644 --- a/tests/test_snippets.py +++ b/tests/test_snippets.py @@ -1,4 +1,5 @@ """Test the documented snippets run correctly, and are the same for both RST and MyST.""" + from pathlib import Path from typing import Callable