Skip to content

Commit 43ff082

Browse files
committed
chore: cargo update — pulls latest tangle-inference-core (PaymentProvider, security fixes)
1 parent 422a829 commit 43ff082

2 files changed

Lines changed: 33 additions & 88 deletions

File tree

.githooks/pre-commit

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
# Pre-commit hook: blocks commits that fail fmt or clippy.
3+
# Install: git config core.hooksPath .githooks
4+
set -e
5+
TOOLCHAIN="${RUST_TOOLCHAIN:-1.91}"
6+
echo "pre-commit: checking rustfmt..."
7+
RUSTUP_TOOLCHAIN="$TOOLCHAIN" cargo fmt --all -- --check
8+
if [ $? -ne 0 ]; then
9+
echo "❌ rustfmt failed. Run: cargo fmt --all"
10+
exit 1
11+
fi
12+
echo "pre-commit: checking clippy..."
13+
RUSTUP_TOOLCHAIN="$TOOLCHAIN" cargo clippy --workspace -- -D warnings 2>&1
14+
if [ $? -ne 0 ]; then
15+
echo "❌ clippy failed. Fix warnings above."
16+
exit 1
17+
fi
18+
echo "pre-commit: ✓ fmt + clippy clean"

Cargo.lock

Lines changed: 15 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)