Rename the "doctest" session into "test-docstrings"
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m46s

This commit is contained in:
Alexander Hess 2026-12-01 17:14:48 +01:00
commit cfd8d33049
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -5,7 +5,7 @@ By default, `uv run nox` runs the sessions that assure code quality:
- "format": Format source files with `autoflake`, `black`, `flynt`, `isort`, and `ruff`
- "lint": Lint source files with `flake8`, `isort`, `mypy`, `pyright`, and `ruff`
- "test": Run the test suite with `pytest`
- "doctest": Check if code snippets in the docstrings run
- "test-docstrings": Check if code snippets in the docstrings run
- "test-types": Run the test suite with runtime type checks by `typeguard`
Further sessions run on demand with `uv run nox -s <session>`:
@ -151,7 +151,7 @@ nox.options.sessions = (
"format",
"lint",
"test",
"doctest",
"test-docstrings",
"test-types",
)
@ -305,7 +305,7 @@ def test_code(session: nox.Session) -> None:
session.run("pytest", *(session.posargs or pytest_default_args))
@nox.session(name="doctest", python=MAIN_PYTHON)
@nox.session(name="test-docstrings", python=MAIN_PYTHON)
def test_docstrings(session: nox.Session) -> None:
"""Test the code snippets in the docstrings with `xdoctest`.