Skip to content

Commit 0c57fc8

Browse files
committed
chore(workspace): Wire sphinx-autodoc-pytest-fixtures into monorepo
why: The package needs workspace membership, dependency wiring, and tool configuration to be discoverable by uv, ruff, mypy, and pytest. what: - Add workspace source and dev dependency - ruff: add to known-first-party; suppress D417 only (numpy convention already handles D413/D211/D213) - mypy: ignore_errors for gradual typing adoption - pytest: register "integration" marker for Sphinx build tests; add --ignore so doctest-modules skips the package
1 parent a31e6b9 commit 0c57fc8

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ members = ["packages/*"]
1919
sphinx-fonts = { workspace = true }
2020
sphinx-gptheme = { workspace = true }
2121
sphinx-argparse-neo = { workspace = true }
22+
sphinx-autodoc-pytest-fixtures = { workspace = true }
2223
gp-sphinx = { workspace = true }
2324

2425
[dependency-groups]
2526
dev = [
2627
"gp-sphinx",
2728
"sphinx-argparse-neo",
29+
"sphinx-autodoc-pytest-fixtures",
2830
# Docs
2931
"sphinx-autobuild",
3032
# Testing
@@ -67,6 +69,12 @@ files = [
6769
module = ["sphinx_fonts", "tests.ext.test_sphinx_fonts"]
6870
disable_error_code = ["attr-defined", "unused-ignore"]
6971

72+
[[tool.mypy.overrides]]
73+
# sphinx_autodoc_pytest_fixtures: not yet typed strictly; ignore_errors is temporary
74+
# until targeted disable_error_code can replace it.
75+
module = ["sphinx_autodoc_pytest_fixtures", "sphinx_autodoc_pytest_fixtures.*", "tests.ext.pytest_fixtures.*"]
76+
ignore_errors = true
77+
7078
[tool.ruff]
7179
target-version = "py310"
7280

@@ -105,6 +113,7 @@ known-first-party = [
105113
"sphinx_fonts",
106114
"sphinx_gptheme",
107115
"sphinx_argparse_neo",
116+
"sphinx_autodoc_pytest_fixtures",
108117
]
109118
combine-as-imports = true
110119
required-imports = [
@@ -117,12 +126,17 @@ convention = "numpy"
117126
[tool.ruff.lint.per-file-ignores]
118127
"*/__init__.py" = ["F401"]
119128
"packages/sphinx-argparse-neo/**/*.py" = ["E501", "UP", "A", "B", "COM", "EM", "TRY", "PERF", "RUF", "SIM", "FA100"]
129+
"packages/sphinx-autodoc-pytest-fixtures/**/*.py" = ["D417", "E501", "UP", "A", "B", "COM", "EM", "TRY", "PERF", "RUF", "SIM", "FA100"]
120130
"tests/ext/*.py" = ["D", "E501", "UP", "A", "B", "COM", "EM", "TRY", "PERF", "RUF", "SIM", "FA100"]
121131
"tests/ext/argparse_neo/*.py" = ["D", "E501", "UP", "A", "B", "COM", "EM", "TRY", "PERF", "RUF", "SIM", "FA100"]
132+
"tests/ext/pytest_fixtures/*.py" = ["D", "E501", "UP", "A", "B", "COM", "EM", "TRY", "PERF", "RUF", "SIM", "FA100"]
122133

123134
[tool.pytest.ini_options]
124-
addopts = "--tb=short --no-header --showlocals --doctest-modules --ignore=packages/sphinx-argparse-neo"
135+
addopts = "--tb=short --no-header --showlocals --doctest-modules --ignore=packages/sphinx-argparse-neo --ignore=packages/sphinx-autodoc-pytest-fixtures"
125136
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE"
137+
markers = [
138+
"integration: sphinx integration tests (require full sphinx build)",
139+
]
126140
testpaths = [
127141
"tests",
128142
"docs",

uv.lock

Lines changed: 19 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)