Skip to content

Development

Setup

Install project dependencies with uv:

uv sync

Install pre-commit hooks once:

uv run pre-commit install

Main Commands

Run tests:

uv run pytest

Run lint checks:

uv run ruff check .
uv run ruff format --check .

Run type checks:

uv run mypy affetch tests

Inspect the CLI:

uv run affetch --help

Docs Workflow

Serve docs locally:

uv run --group docs mkdocs serve --config-file mkdocs.yml --dev-addr localhost:8000

Build docs in strict mode:

uv run --group docs mkdocs build --config-file mkdocs.yml --clean --strict

Project Layout

  • affetch/: package source
  • tests/: test suite
  • docs/: documentation site
  • pyproject.toml: package metadata and tooling configuration