diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4723d7..cfb87fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-json - id: check-yaml @@ -19,23 +19,23 @@ repos: - id: trailing-whitespace - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [flake8-bugbear~=22.7] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.10.0 hooks: - id: mypy additional_dependencies: [] 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