Format
Format the codebase using ruff:Validate
Lint and type-check using ruff and mypy:Configuration is in
pyproject.toml. Run both scripts before every commit.Pre-commit Workflow
Common Issues
| Issue | Solution |
|---|---|
ruff not found | Run uv pip install ruff |
mypy not found | Run uv pip install mypy |
| Type errors | Fix the types or add # type: ignore comment |
| Import sorting | Run ruff check --fix . to auto-fix |