Development¶
uv sync
uv tool install pre-commit # once per machine
pre-commit install # format with ruff on every commit
uv run pytest # with a coverage report; add --no-cov to skip it
uv run ruff check
uv run basedpyright
tests/mirrorssrc/: the tests forsrc/fastaxi/setup/skill.pyare intests/fastaxi/setup/test_skill.py. End-to-end tests of the example app are intests/examples/.- Each test's docstring describes it as GIVEN / WHEN / THEN.
- Every public class, function and method needs a docstring;
ruff checkenforces it. - Lines are at most 80 characters;
ruff format(run by the pre-commit hook) wraps code.
Documentation¶
The site is built with MkDocs Material. Pages
live in docs/, and the API reference is generated from the docstrings in
src/.
uv run --group docs mkdocs serve # preview at http://127.0.0.1:8000, reloads on save
uv run --group docs mkdocs build --strict # what CI runs; broken links fail the build
Every push to main builds the site and publishes it to GitHub Pages
(.github/workflows/docs.yml). Pull requests only check that it builds.