| name | lint-fix |
| description | Run linting and type checking, fix violations |
| allowed-tools | Bash, Read, Edit, Grep, Glob |
| user-invocable | true |
Lint and Fix
Run all code quality checks and fix any violations.
Steps
-
Run ruff check:
ruff check src/ tests/
-
Auto-fix what ruff can handle:
ruff check --fix src/ tests/
-
Run type checking:
make typecheck-touched
-
Review remaining issues that couldn't be auto-fixed:
- Read each flagged file
- Apply manual fixes following existing code style
- Common fixes: unused imports, missing type annotations, line length
-
Verify everything passes:
ruff check src/ tests/
make typecheck-touched
-
Run tests to confirm fixes didn't break anything:
PYTHONPATH=src python -m pytest tests/ --cov=src --cov-fail-under=85 -q
-
Report a summary of what was fixed and any remaining issues that need manual review.