Skip to content

Commit 301e4a5

Browse files
committed
Review: make clippy pre-push hook instead
1 parent 32189bf commit 301e4a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ repos:
6767
# Don't run on vendored files
6868
exclude: "^c/(sedona-geoarrow-c/src/geoarrow|sedona-geoarrow-c/src/nanoarrow|sedona-tg/src/tg)/.*"
6969

70+
# Slow hooks, only run on `git push`
7071
- repo: local
7172
hooks:
7273
- id: cargo-clippy-fix-workspace
7374
name: cargo clippy fix workspace (best effort)
74-
entry: bash -c 'bash ci/scripts/cargo-clippy.sh --fix || true'
75+
entry: bash -c 'bash ci/scripts/cargo-clippy.sh --fix'
7576
language: system
77+
stages: [pre-push]
7678
pass_filenames: false
7779
files: '(^|/)(Cargo\.toml|Cargo\.lock|.*\.rs)$'

0 commit comments

Comments
 (0)