Skip to content

Commit 94effd3

Browse files
committed
Add navigation checks to top-level
Signed-off-by: Cristian Le <git@lecris.dev>
1 parent c73d62e commit 94effd3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/packages/importlib_editable/pkg/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Don't let ruff sort imports in this file, we want to keep them with the comments as is
22
# for clarity.
33
# ruff: noqa: I001
4+
# mypy: ignore-errors
5+
6+
# Level zero import global modules
7+
import emod
8+
import pmod
49

510
# Level one pure modules
611
from . import pmod_a
@@ -31,11 +36,13 @@
3136
from .sub_b.sub_d import emod_e
3237

3338
__all__ = [
39+
"emod",
3440
"emod_a",
3541
"emod_b",
3642
"emod_c",
3743
"emod_d",
3844
"emod_e",
45+
"pmod",
3946
"pmod_a",
4047
"pmod_b",
4148
"pmod_c",

tests/test_editable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def test_direct_import(monkeypatch, tmp_path, editable, editable_mode, isolated)
210210
monkeypatch, tmp_path, editable, editable_mode, isolated
211211
)
212212
isolated.execute("import pkg")
213+
isolated.execute("import pmod")
214+
isolated.execute("import emod")
213215

214216

215217
@pytest.mark.compile

0 commit comments

Comments
 (0)