Skip to content

Commit 1c00929

Browse files
committed
Turn on basic doctests for modules and .rst docs
1 parent 193fa24 commit 1c00929

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python-project-template/pyproject.toml.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ write_to = "src/{{package_name}}/_version.py"
6363
[tool.pytest.ini_options]
6464
testpaths = [
6565
"tests",
66+
"src",
67+
"docs",
6668
]
69+
addopts = "--doctest-modules --doctest-glob=*.rst"
6770

6871
[tool.black]
6972
line-length = 110

0 commit comments

Comments
 (0)