We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3388b1e commit ff6bfc6Copy full SHA for ff6bfc6
1 file changed
template/Makefile
@@ -17,7 +17,9 @@ test: test-unit-tests test-doctest
17
test-unit-tests:
18
uv run --no-sources pytest tests
19
20
-test-doctest: # exit code 5 = no tests collected, which is fine for a fresh project
+test-doctest:
21
+ # Run doctests in src/. Tolerates exit code 5 (no tests collected) so that
22
+ # `make test` passes on a fresh project before any doctests have been added.
23
uv run --no-sources pytest --doctest-modules src; rc=$$?; [ $$rc -eq 5 ] && exit 0 || exit $$rc
24
25
build:
0 commit comments