Check style
Steps
- Run the project's linter —
{{ profile.lint_command if profile and profile.lint_command else "ruff check . / flake8 / mypy — whatever the project declared" }}. - If the linter has an auto-fix flag (
ruff check --fix,black .), run it. - Re-run to confirm clean.
- Run the formatter if separate (
ruff format .,black .). - If there are remaining warnings you can't auto-fix, surface them in the summary — don't silently
# noqathem.
Failure modes to avoid
- Adding
# noqato suppress a real bug. - Running a different formatter (
black) when the project usesruff format. - Auto-formatting files outside your diff (touches unrelated lines, bloats the PR).
- Skipping lint with "it's just a small change."