Skip to content

Commit 97278d4

Browse files
raphaelstyclaude
andcommitted
Update pre-commit hook to ignore untracked bin files
Use --lib flag for clippy and doc commands to avoid checking untracked binary files in src/bin/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2384e24 commit 97278d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/pre-commit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ echo "Running pre-commit checks..."
1111
echo "Checking formatting..."
1212
cargo fmt --all -- --check
1313

14-
# Run clippy
14+
# Run clippy (lib only to ignore untracked bin files)
1515
echo "Running clippy..."
16-
cargo clippy --all-targets --all-features -- -D warnings
16+
cargo clippy --lib --tests --all-features -- -D warnings
1717

1818
# Run tests
1919
echo "Running tests..."
2020
cargo test
2121

22-
# Build documentation (with warnings as errors)
22+
# Build documentation (lib only to ignore untracked bin files)
2323
echo "Building documentation..."
24-
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
24+
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --lib --all-features
2525

2626
# Compile benchmarks (without running)
2727
echo "Checking benchmarks compile..."

0 commit comments

Comments
 (0)