Skip to content

Commit e3dfc7f

Browse files
committed
pyproject(mypy): add sphinx_fonts to ignore_missing_imports
why: sphinx_fonts is a local docs/_ext extension, not an installed package — mypy cannot resolve it at analysis time. what: - Add sphinx_fonts to [[tool.mypy.overrides]] ignore_missing_imports - Add tests.docs._ext.test_sphinx_fonts to ignore_errors (mypy discovers sphinx_fonts as a top-level module in this repo, so arg-type errors from SimpleNamespace duck-typing need suppression)
1 parent 4cccecc commit e3dfc7f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ files = [
135135
"tests/",
136136
]
137137

138+
[[tool.mypy.overrides]]
139+
module = ["sphinx_fonts"]
140+
ignore_missing_imports = true
141+
142+
[[tool.mypy.overrides]]
143+
module = ["tests.docs._ext.test_sphinx_fonts"]
144+
ignore_errors = true
145+
138146
[tool.ruff]
139147
target-version = "py310"
140148

0 commit comments

Comments
 (0)