Skip to content

Commit c612ad8

Browse files
xtqqczzesylvestre
authored andcommitted
pre-commit: update rust-clippy and cargo-lock-check to run without accessing the network
1 parent 62ad74b commit c612ad8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ repos:
4040
- id: rust-clippy
4141
name: Rust clippy
4242
description: Run cargo clippy on files included in the commit.
43-
entry: cargo +stable clippy --workspace --all-targets --all-features -- -D warnings
43+
entry: cargo +stable clippy --frozen --workspace --all-targets --all-features -- -D warnings
4444
pass_filenames: false
4545
types: [file, rust]
4646
language: system
4747
- id: cargo-lock-check
4848
name: Cargo.lock sync check
4949
description: Ensure Cargo.lock and fuzz/Cargo.lock are up-to-date.
50-
entry: bash -c 'for dir in . fuzz; do ( cd "$dir" && cargo fetch --locked --quiet ) || { echo "ERROR - $dir/Cargo.lock is out of date. Run -> cd $dir && cargo update"; exit 1; } done'
50+
entry: bash -c 'for dir in . fuzz; do ( cd "$dir" && cargo fetch --frozen --quiet ) || { echo "ERROR - $dir/Cargo.lock is out of date. Run -> cd $dir && cargo update"; exit 1; } done'
5151
pass_filenames: false
5252
files: 'Cargo\.(toml|lock)$'
5353
language: system

0 commit comments

Comments
 (0)