A personal collection of pre-commit hooks.
AI disclosure: these hooks were written with AI assistance, at least in part.
Add to a project's .pre-commit-config.yaml:
repos:
- repo: https://github.com/JonBoyleCoding/git-hooks
rev: v0.1.1
hooks:
- id: hy-stubgenhy-stubgen uses the project's own hy and ruff. hy-stubgen-uv is the same hook
self-contained via uv (needs uv available).
| Hook | Description |
|---|---|
hy-stubgen |
Generate and merge .pyi stubs for .hy modules using the environment's hy/ruff; fail on public placeholders. |
hy-stubgen-uv |
As hy-stubgen but self-contained via uv (typer/rich); needs uv, not a project hy/ruff. |