name: preflight description: Run all quality gates before committing. Use when about to commit or checking if changes will pass CI.
Preflight quality check
Run all 8 executable quality gates from repo root. The staged secret guard is part of the pre-commit hook and is intentionally out of scope here. Collect ALL results before reporting — do not stop at first failure.
Output rules
- Pass: report only
✓ <gate> passed— no full output - Fail: show first 30 lines, note truncation count
- Skip frontend gates (7-8) if no frontend files changed
Gates
uv run ruff check apps/pipeline/src apps/pipeline/tests packages/schemas/pythonuv run ruff format --check apps/pipeline/src apps/pipeline/tests packages/schemas/pythonuv run mypy apps/pipeline/src packages/schemas/pythonuv run lint-importsuv run python scripts/check_file_length.pyuv run pytest -x -q --timeout=60 -m "not slow"cd apps/web && pnpm lintcd apps/web && pnpm typecheck
Reporting
Output a summary table (gate / PASS|FAIL / error count). For failures, include truncated output (≤30 lines).
- All pass → "All gates pass — ready to commit"
- Any fail → fix before committing
- Ruff format only →
uv run ruff format .then re-check - Ruff lint auto-fixable →
uv run ruff check --fix .then re-check