Pre-Commit Validation
This skill helps you validate your code changes before committing.
Instructions
Follow the validation workflow in instructions.md.
Quick Command Reference
Quick Check (Before Commits)
bash
# Auto-fix code style ruff check src/ tests/ --fix --quiet || true ruff format src/ tests/ --quiet # Run fast tests pytest tests/ --ignore=tests/e2e -x --tb=line -q
Or use the script:
bash
./scripts/quick_check.sh
Full CI Check (Before Pushing)
bash
./scripts/ci_check.sh
Workflow
- •Auto-fix formatting and simple lint issues
- •Run tests to catch regressions
- •Fix failures if any tests fail
- •Re-run until all checks pass
- •Commit with confidence
When to Use Each Check
| Situation | Command |
|---|---|
| Ready to commit | ./scripts/quick_check.sh |
| Ready to push | ./scripts/ci_check.sh |
| Creating PR | ./scripts/premerge_check.sh main |