Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# Block commits that would fail CI's `cargo fmt --all --check` gate — the exact
# check that let an unformatted main.rs slip into ec7d4ad.
# ponytail: fmt only (instant). clippy/test/build stay in the pre-PR + CI gate,
# too slow to run on every commit.
#
# Shared via core.hooksPath — enable once per clone: git config core.hooksPath .githooks
if ! cargo fmt --all --check; then
echo >&2
echo "pre-commit: rustfmt check failed. Run 'cargo fmt --all', re-stage, and commit again." >&2
exit 1
fi
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,3 @@ jobs:

- name: Test
run: cargo test --workspace

- name: Build
run: cargo build --workspace
Loading
Loading