Skip to content

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/ mirrors src/: the tests for src/fastaxi/setup/skill.py are in tests/fastaxi/setup/test_skill.py. End-to-end tests of the example app are in tests/examples/.
  • Each test's docstring describes it as GIVEN / WHEN / THEN.
  • Every public class, function and method needs a docstring; ruff check enforces 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.