Skip to content

Commit 9033df4

Browse files
committed
Enable doctests
1 parent 7907852 commit 9033df4

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
@@ -136,7 +136,7 @@ numpy = ["1.25", "2.1"]
136136
features = ["gpu"]
137137

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

350350
[tool.pytest.ini_options]
351351
minversion = "7"
352-
testpaths = ["tests"]
352+
testpaths = ["tests", "docs"]
353353
log_cli_level = "INFO"
354354
xfail_strict = true
355355
asyncio_mode = "auto"

0 commit comments

Comments
 (0)