Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 11, 2024
1 parent 717db6f commit 4de7db1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion tests/test_analyse_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
7 changes: 4 additions & 3 deletions tests/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
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
from autodoc2.render.base import RendererBase
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(
Expand Down

0 comments on commit 4de7db1

Please sign in to comment.