Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Linting

black

We format Python code with black.

uv run --dev black src

isort

We format Python code with isort.

uv run --dev isort src

ruff

We lint Python code with ruff.

uv run --dev ruff check src

ruff has a “fix” mode:

uv run --dev ruff check --fix src

mypy

We type-check Python code with mypy.

uv run --dev mypy src

typos

We spell-check Markdown with typos:

find . -type f -name '*.md' -print | typos --file-list -