File tree Expand file tree Collapse file tree
packages/griffelib/src/griffe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 595595
596596# Re-export griffecli for backward compatibility.
597597try :
598- from griffecli import *
598+ from griffecli import * # noqa: F403
599599 from griffecli import __all__ as __cli_all__
600600except ImportError :
601601 # Keep this in sync with the exported members of griffecli.
@@ -612,6 +612,6 @@ def __getattr__(attr: str) -> object:
612612 raise ImportError (f"Please install `griffecli` to use { 'griffe.' + attr !r} " )
613613 raise AttributeError (attr )
614614else :
615- __all__ += __cli_all__
615+ __all__ += __cli_all__ # noqa: PLE0605
616616 # Ignore this namespace in internal API tests.
617617 _SINGLE_LOCATIONS_IGNORE = set (__cli_all__ )
Original file line number Diff line number Diff line change 55from collections import defaultdict
66from fnmatch import fnmatch
77from pathlib import Path
8- from types import ModuleType
98from typing import TYPE_CHECKING
109
1110import pytest
1615
1716if TYPE_CHECKING :
1817 from collections .abc import Iterator
18+ from types import ModuleType
1919
2020
2121def _load_module (module : ModuleType ) -> griffe .GriffeLoader :
@@ -200,7 +200,6 @@ def test_no_module_docstrings_in_internal_api(tested_module: ModuleType) -> None
200200 The reasoning is that docstrings are addressed to users of the public API,
201201 but internal modules are not exposed to users, so they should not have docstrings.
202202 """
203-
204203 internal_api = _get_internal_api (tested_module )
205204
206205 def _modules (obj : griffe .Module ) -> Iterator [griffe .Module ]:
You can’t perform that action at this time.
0 commit comments