chore: add check.yml and pre-commit hook recipes #15

Merged
David merged 3 commits from chore/pre-commit-hooks into main 2026-06-13 12:48:16 +02:00
Owner

Summary

  • Add .forgejo/workflows/check.yml with fmt, clippy, build, and workspace unit-test steps targeting the opensuse-base CI runner.
  • Add dev_image variable at the top of justfile pinning the rust-builder-glibc image that matches the CI runner toolchain.
  • Add [group: 'hooks'] recipes install-hooks and pre-commit mirroring check.yml step-for-step inside the rust-builder-glibc image; each docker run passes --env SQLX_OFFLINE=true so sqlx offline-mode is set inside the container (required by the workspace).

Test plan

  • Run just --list and confirm [hooks] group shows install-hooks and pre-commit.
  • Run just install-hooks in a fresh clone; verify .git/hooks/pre-commit is created and executable.
  • Run git commit --no-verify to confirm bypass works.
  • (Optional, needs Docker + image pull) Run just pre-commit on a clean tree and confirm all four cargo steps pass.

Generated with Claude Code

## Summary - Add `.forgejo/workflows/check.yml` with fmt, clippy, build, and workspace unit-test steps targeting the opensuse-base CI runner. - Add `dev_image` variable at the top of `justfile` pinning the `rust-builder-glibc` image that matches the CI runner toolchain. - Add `[group: 'hooks']` recipes `install-hooks` and `pre-commit` mirroring `check.yml` step-for-step inside the rust-builder-glibc image; each `docker run` passes `--env SQLX_OFFLINE=true` so sqlx offline-mode is set inside the container (required by the workspace). ## Test plan - [ ] Run `just --list` and confirm `[hooks]` group shows `install-hooks` and `pre-commit`. - [ ] Run `just install-hooks` in a fresh clone; verify `.git/hooks/pre-commit` is created and executable. - [ ] Run `git commit --no-verify` to confirm bypass works. - [ ] (Optional, needs Docker + image pull) Run `just pre-commit` on a clean tree and confirm all four cargo steps pass. Generated with [Claude Code](https://claude.com/claude-code)
chore: add check.yml plus install-hooks and pre-commit recipes
All checks were successful
Checks / fmt + clippy + test (pull_request) Successful in 23s
Check / fmt + clippy + build + tests (pull_request) Successful in 55s
8566af7f94
Add a minimal `.forgejo/workflows/check.yml` (fmt, clippy, build, workspace unit tests) and the governance `[group: 'hooks']` recipes from governance/PRE_COMMIT.md: `install-hooks` writes a `.git/hooks/pre-commit` stub that execs `just pre-commit`, and `pre-commit` mirrors check.yml step-for-step inside the rust-builder-glibc image so CI failures surface locally before push.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix: mirror existing checks.yml, drop duplicate check.yml
All checks were successful
Checks / fmt + clippy + test (pull_request) Successful in 13s
9f911441c2
The repo already ships `.forgejo/workflows/checks.yml` as its CI. Remove the redundant `check.yml` this branch added and re-point the `pre-commit` recipe at `checks.yml`, mirroring it exactly (fmt, clippy, `cargo test --workspace`) and dropping the extra build step so a green hook matches a green CI run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge branch 'main' into chore/pre-commit-hooks
All checks were successful
create-release / create-release (pull_request) Has been skipped
Checks / fmt + clippy + test (pull_request) Successful in 29s
1aee1bb110
David merged commit e77366e2a8 into main 2026-06-13 12:48:16 +02:00
David deleted branch chore/pre-commit-hooks 2026-06-13 12:48:16 +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/dunite!15
No description provided.