add-check
Add a new code quality check to CI, justfile, and pre-commit hooks. Use when adding linters, formatters, type checkers, or other code quality tools to the project.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Adding a New Check
When adding a new code quality check (linter, formatter, type checker, etc.), update these three locations:
1. justfile
Add a new recipe and include it in the default target:
default: lint format typecheck your-check
your-check:
uv run YOUR_COMMAND
2. .github/workflows/ci.yaml
Add a step to the verify job after the existing checks:
- name: Run YOUR_CHECK
run: uv run YOUR_COMMAND
3. lefthook.yml
Add a job to the pre-commit.jobs list:
- name: YOUR_CHECK
glob: "*.py"
run: YOUR_COMMAND {staged_files}
If the tool can auto-fix issues, add stage_fixed: true.
Checklist
- Add dev dependency to
pyproject.tomlif needed - Add justfile recipe and update
defaulttarget - Add CI workflow step
- Add lefthook pre-commit job
- Run
justto verify all checks pass
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-28
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!