Skip to content

Commit fe5db3e

Browse files
committed
chore(mypy[docs]) Include docs lexers in default type checks
why: The docs lexer tests import modules from docs/_ext, but the default mypy scope only covered src and tests so uv run mypy failed on unresolved imports and reported a stale docutils override. what: - add docs/_ext to the default mypy files list - remove the unused docutils override entries - keep the existing shtab and pygments import exceptions
1 parent 21e81f7 commit fe5db3e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,13 @@ warn_unused_configs = true
139139
files = [
140140
"src",
141141
"tests",
142+
"docs/_ext",
142143
]
143144
strict = true
144145

145146
[[tool.mypy.overrides]]
146147
module = [
147148
"shtab",
148-
"docutils",
149-
"docutils.*",
150149
"pygments",
151150
"pygments.*",
152151
]

0 commit comments

Comments
 (0)