Rename the "doctest" session into "test-docstrings"
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m46s
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m46s
This commit is contained in:
parent
f47c87f51f
commit
cfd8d33049
1 changed files with 8 additions and 8 deletions
|
|
@ -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`.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue