chore: add install-hooks + pre-commit recipes #13

Merged
David merged 1 commit from chore/pre-commit-hook into main 2026-05-11 00:23:20 +02:00
Owner

Summary

Adds the install-hooks and pre-commit recipes per governance/PRE_COMMIT.md. No check.yml change: this repo already has one and the local recipe delegates to the same oci-build/check.Dockerfile it uses, so CI and pre-commit run identical checks.

Changes

  • justfile: new install-hooks + pre-commit recipes. The pre-commit recipe is one line: docker build --file oci-build/check.Dockerfile . - matches CI exactly.

Test plan

  • just install-hooks writes the stub correctly.
  • just pre-commit runs and passes (matches CI).
## Summary Adds the `install-hooks` and `pre-commit` recipes per [governance/PRE_COMMIT.md](https://dev.a8n.run/a8n-tools/governance/src/branch/main/PRE_COMMIT.md). No `check.yml` change: this repo already has one and the local recipe delegates to the same `oci-build/check.Dockerfile` it uses, so CI and pre-commit run identical checks. ## Changes - `justfile`: new `install-hooks` + `pre-commit` recipes. The pre-commit recipe is one line: `docker build --file oci-build/check.Dockerfile .` - matches CI exactly. ## Test plan - [ ] `just install-hooks` writes the stub correctly. - [ ] `just pre-commit` runs and passes (matches CI).
chore: add install-hooks + pre-commit recipes
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 4m12s
c6f009dd6c
`just install-hooks` writes a stub at .git/hooks/pre-commit that execs `just pre-commit`. The recipe runs `docker build --file oci-build/check.Dockerfile .`, which is the exact same single command .forgejo/workflows/check.yml runs in CI. The check.Dockerfile encapsulates fmt, clippy --deny warnings, build, and test --lib as RUN layers, so a green local build === a green CI run on the same commit. See governance/PRE_COMMIT.md for the org-wide standard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
David merged commit aad3ab2185 into main 2026-05-11 00:23:20 +02:00
David deleted branch chore/pre-commit-hook 2026-05-11 00:23:20 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-agent!13
No description provided.