From d51a19b01791932117430155e342a7eb10682790 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:35:21 +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.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.7.0 → 24.4.2](https://github.com/psf/black/compare/23.7.0...24.4.2) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.10.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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: [] From 472cb5403e2b0fd69bce0f02e52760fb67c4edeb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:39:10 +0000 Subject: [PATCH 2/2] [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