Skip to content

Code Style & Linting

This project uses modern Python tooling for code quality, entirely orchestrated by hatch.

Formatting and Linting

We use Ruff to handle both code formatting and linting. Ruff replaces Black, isort, and Flake8, executing in milliseconds.

To format your code and fix auto-fixable lint errors, run:

hatch run fmt

To check for issues without modifying files (used in CI):

hatch run fmt-check

Type Checking

We strictly enforce static typing using mypy.

hatch run type-check