| description | Run code quality checks on a directory |
|---|---|
| allowed-tools | Read, Glob, Grep, Bash(uv:*) |
Review code quality in: $ARGUMENTS
-
Identify files to review:
- Find all
.pyfiles in the directory - Exclude migrations,
__pycache__, and generated files
- Find all
-
Run automated checks:
uv run ruff check $ARGUMENTS uv run ruff format --check $ARGUMENTS uv run pyright $ARGUMENTS uv run pytest $ARGUMENTS -v
-
Manual review checklist:
- No
Anytypes without justification - Proper error handling (no silent exceptions)
- N+1 queries avoided (select_related/prefetch_related)
- Forms have proper validation
- Views return correct HTTP status codes
- HTMX partials handle HX-Request header
- Celery tasks are idempotent
- Tests use factories, not raw object creation
- No
-
Report findings organized by severity:
- Critical (must fix)
- Warning (should fix)
- Suggestion (could improve)