Skip to content

Commit dcb6cb6

Browse files
hanslclaude
andauthored
chore: Add husky-rs git pre-push hook to clippy and fmt (#5002)
No need to do that on every commit, but pushing will help people stop pushing things that fail Lint on CI. Like me. I do that. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7eb6077 commit dcb6cb6

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.husky/pre-push

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
if ! command -v cargo-make >/dev/null 2>&1; then
4+
echo "cargo-make is not installed. Install it with:"
5+
echo " cargo install cargo-make"
6+
exit 1
7+
fi
8+
9+
cargo make run-ci

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ futures-channel = "0.3.32"
144144
aligned-vec = "0.6.4"
145145
temp-env = "0.3.6"
146146
strum = { version = "0.28", features = ["derive"] }
147+
husky-rs = "0.3.2"
147148

148149
# ICU4X
149150

core/engine/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ float-cmp.workspace = true
201201
indoc.workspace = true
202202
textwrap.workspace = true
203203
test-case.workspace = true
204+
husky-rs.workspace = true
204205

205206
[target.x86_64-unknown-linux-gnu.dev-dependencies]
206207
jemallocator.workspace = true

0 commit comments

Comments
 (0)