From 4de7db103f454d9bb008b6b516a2723455a7608d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:59:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 3 ++- tests/test_analyse_module.py | 3 ++- tests/test_render.py | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e2a02b3..10ebdfe 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -96,11 +96,12 @@ import typing as t # noqa: E402 -from autodoc2.config import CONFIG_PREFIX, Config, PackageConfig # noqa: E402 from docutils import nodes # noqa: E402 from sphinx.application import Sphinx # noqa: E402 from sphinx.util.docutils import SphinxDirective # noqa: E402 +from autodoc2.config import CONFIG_PREFIX, Config, PackageConfig # noqa: E402 + def setup(app: Sphinx) -> None: app.add_object_type( diff --git a/tests/test_analyse_module.py b/tests/test_analyse_module.py index 93e7192..0133c71 100644 --- a/tests/test_analyse_module.py +++ b/tests/test_analyse_module.py @@ -4,9 +4,10 @@ import typing as t -from autodoc2.analysis import analyse_module import pytest +from autodoc2.analysis import analyse_module + def clean_item(item: dict[str, t.Any]) -> dict[str, t.Any]: """Remove non-deterministic data.""" diff --git a/tests/test_render.py b/tests/test_render.py index e4b3148..36ef497 100644 --- a/tests/test_render.py +++ b/tests/test_render.py @@ -4,6 +4,10 @@ from pathlib import Path from textwrap import dedent +import pytest +from sphinx.testing.util import SphinxTestApp +from sphinx.testing.util import path as sphinx_path + from autodoc2.analysis import analyse_module from autodoc2.config import Config from autodoc2.db import InMemoryDb @@ -11,9 +15,6 @@ from autodoc2.render.myst_ import MystRenderer from autodoc2.render.rst_ import RstRenderer from autodoc2.utils import yield_modules -import pytest -from sphinx.testing.util import SphinxTestApp -from sphinx.testing.util import path as sphinx_path @pytest.mark.parametrize(