chore: add pre-commit hook mirroring check.yml #42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/pre-commit-hook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
scripts/pre-commit runs the same
cargo fmt --check, clippy, two wasm32 cargo checks (standalone+web and saas+web), full build, andcargo test --libthat .forgejo/workflows/check.yml runs in CI, so drift is caught before push instead of after.Hook lives in scripts/ so it tracks with the repo. Each contributor opts in once per clone with
just install-hooks, which symlinks .git/hooks/pre-commit at scripts/pre-commit. Bypass for a single commit withgit commit --no-verify.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com