Run the tests and checks#
Each command below runs the same check as CI.
The test suite#
uv run pytest
The suite includes the demo project’s pages.
Linting, formatting and type checks#
uv run pre-commit run --all-files
This runs ruff, mypy and deptry. Run it rather than a bare ruff check .: the hook configuration
excludes paths and runs hooks that a bare call does not.
The documentation#
uv run --group docs sphinx-build -E -W -b html docs docs/_build
-W treats a warning as an error, so a page missing from the contents or a broken link fails
the build. Run it this way before opening a pull request.
Everything at once#
uv run invoke check