Skip to content

Commit f37ffdc

Browse files
committed
Fix lint problems
1 parent c71d034 commit f37ffdc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/griffelib/src/griffe/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@
595595

596596
# Re-export griffecli for backward compatibility.
597597
try:
598-
from griffecli import *
598+
from griffecli import * # noqa: F403
599599
from griffecli import __all__ as __cli_all__
600600
except 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)
614614
else:
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__)

tests/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections import defaultdict
66
from fnmatch import fnmatch
77
from pathlib import Path
8-
from types import ModuleType
98
from typing import TYPE_CHECKING
109

1110
import pytest
@@ -16,6 +15,7 @@
1615

1716
if TYPE_CHECKING:
1817
from collections.abc import Iterator
18+
from types import ModuleType
1919

2020

2121
def _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]:

0 commit comments

Comments
 (0)