Skip to content

Commit 0eb08fc

Browse files
committed
Enable doctests
1 parent ace1c13 commit 0eb08fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ numpy = ["1.25", "2.1"]
138138
features = ["gpu"]
139139

140140
[tool.hatch.envs.test.scripts]
141-
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src"
141+
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src --doctest-glob='*.rst'"
142142
run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src"
143143
run = "run-coverage --no-cov"
144144
run-verbose = "run-coverage --verbose"
@@ -351,7 +351,7 @@ ignore_errors = true
351351

352352
[tool.pytest.ini_options]
353353
minversion = "7"
354-
testpaths = ["tests"]
354+
testpaths = ["tests", "docs"]
355355
log_cli_level = "INFO"
356356
xfail_strict = true
357357
asyncio_mode = "auto"

0 commit comments

Comments
 (0)