← Back: Documentation Overview
Tooling that runs on your machine as part of the normal dev workflow, separate from the CI pipeline (see Pipelines for the checks CI itself runs).
lefthook.yml runs ruff, biome and stylelint on staged files before each
commit, auto-fixing what it can (CI still runs the check-only versions of the same tools as the
actual gate).
It's opt-in — nothing runs until you register the hook for your own clone:
- Backend-only:
uv run lefthook install(or theuv-run-lefthook-installalias). - Frontend:
yarn hooks:install(fromfrontend/).
install.sh also offers to do this for you during setup.
Installed it and want to change your mind?
- Skip a single commit:
git commit --no-verify. - Turn off one job (or all of them) without touching the shared config: copy
lefthook-local.yml.exampletolefthook-local.yml(already gitignored) and setpre-commit: skip: true, or disable just one job. lefthook merges this file overlefthook.ymlautomatically. - Remove the git hook entirely:
uv run lefthook uninstall.