Skip to content

Commit 832206b

Browse files
committed
py(deps[dev]): add types-docutils stubs and project config for sphinx_pytest_fixtures
why: The new sphinx_pytest_fixtures extension uses docutils node types that need type stubs for mypy, and its integration tests use a custom pytest marker. what: - Add types-docutils to dev dependencies in pyproject.toml - Add mypy override to ignore missing imports for sphinx_pytest_fixtures and sphinx_pytest_fixtures.* (extension lives under docs/_ext, outside the mypy src/tests search path) - Register "integration" pytest marker for sphinx integration tests - Update uv.lock with types-docutils resolution
1 parent a0c0220 commit 832206b

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ dev = [
7979
# Lint
8080
"ruff",
8181
"mypy",
82+
"types-docutils", # stubs for docutils used by sphinx_pytest_fixtures
8283
]
8384

8485
docs = [
@@ -133,6 +134,10 @@ files = [
133134
module = ["sphinx_fonts"]
134135
ignore_missing_imports = true
135136

137+
[[tool.mypy.overrides]]
138+
module = ["sphinx_pytest_fixtures", "sphinx_pytest_fixtures.*"]
139+
ignore_missing_imports = true
140+
136141
[tool.coverage.run]
137142
branch = true
138143
parallel = true
@@ -241,6 +246,9 @@ testpaths = [
241246
"docs",
242247
"README.md",
243248
]
249+
markers = [
250+
"integration: sphinx integration tests (require full sphinx build)",
251+
]
244252
filterwarnings = [
245253
"ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::",
246254
"ignore::DeprecationWarning:libtmux.*:",

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)