Skip to content

Linting and formatting

Trak uses Ruff for formatting and linting, and mypy for type checks.

Local commands

# format
make ruff-format

# lint (with auto-fix)
make ruff-lint

# format + lint
make ruff

If you are running natively (outside Docker):

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