You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pre-commit): align cargo-fmt hook with CI and apply rustfmt 1.9.0
Three things needed to be fixed together for the pre-commit guard to
match what CI runs:
1. ccs-proxy/tests/store_fs.rs: re-format with rustfmt 1.9.0 (the
version that ships with Rust 1.95 bumped in 208cfae). CI was red
on all three platforms because of this single file.
2. .pre-commit-config.yaml: change `cargo fmt --check` to
`cargo fmt --all -- --check`. Without `--all`, fmt only scans the
root package and silently ignores the `ccs-proxy` workspace member,
which is exactly why the bad commit slipped through the hook.
3. scripts/setup-pre-commit.sh + CLAUDE.md: document that we now use
`prek` (a Rust-native, drop-in compatible replacement for the
Python pre-commit tool) and point the setup script at it. The old
.git/hooks/pre-commit was a hand-written shell that bypassed prek
entirely; `prek install --overwrite` now manages the hook.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments