| name | precheck |
| description | Run full pre-commit validation (backend tests, lint, frontend type check). Use before committing or creating a PR. Trigger phrases include "run checks", "precheck", "validate before commit", "QA gate". |
| compatibility | Designed for Apollos Portal (uv + biome + ruff workspace) |
Pre-commit Validation
Run the complete validation suite before committing. Equivalent to mise run qa.
Steps
- Backend tests:
uv run --package apollos-portal-backend pytest -v
- Backend lint:
uv run --package apollos-portal-backend ruff check backend/
- CLI lint:
uv run --package apollos-cli ruff check cli/
- Frontend lint:
cd frontend && npx biome check .
- Frontend type check:
cd frontend && npx tsc --noEmit
Run all steps sequentially. If any step fails, continue running the remaining steps so the user sees all issues at once.
Output
Summarize results as a checklist:
- Backend tests: PASS/FAIL (N passed, N failed)
- Backend lint: PASS/FAIL (N issues)
- CLI lint: PASS/FAIL (N issues)
- Frontend lint: PASS/FAIL (N issues)
- Frontend types: PASS/FAIL (N errors)
If all pass, confirm the codebase is ready to commit.