Skip to content

Commit 3b6423a

Browse files
committed
Exclude Sphinx test roots to avoid duplicate conf module collisions
These directories are Sphinx fixture projects, not importable package code. - Both tests/roots/test-altairplot/conf.py and tests/roots/test-altairplot-filearg/conf.py are top-level conf.py files. - When mypy walks tests, it maps both to the same module name (conf) and raises Duplicate module named "conf". - These files are test data for Sphinx builds (integration fixtures), so type-checking them adds little value compared to checking sphinxext_altair/ and actual test modules. So the exclude avoids a structural false-positive from fixture layout, not a real typing bug.
1 parent e8711d7 commit 3b6423a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ split-on-trailing-comma = false
297297
[tool.ruff.lint.per-file-ignores]
298298
"!sphinxext_altair/altairplot.py" = ["ANN"]
299299

300+
[tool.mypy]
301+
exclude = "^tests/roots/"
302+
300303
[[tool.mypy.overrides]]
301304
module = ["altair.*"]
302305
ignore_missing_imports = true

0 commit comments

Comments
 (0)