-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
31 lines (26 loc) · 831 Bytes
/
Copy pathlefthook.yml
File metadata and controls
31 lines (26 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pre-commit:
parallel: true
commands:
fmt:
glob: "*.rs"
run: cargo fmt
stage_fixed: true
clippy:
glob: "*.rs"
run: cargo clippy --all-targets --all-features -- -D warnings
fail_text: "Clippy found warnings. Fix them before committing."
check:
run: cargo check --all-targets --all-features
fail_text: "Cargo check failed. Fix compilation errors."
test:
run: cargo test --all-features
fail_text: "Tests failed. Fix failing tests before committing."
pre-push:
parallel: true
commands:
test:
run: cargo test --all-features
fail_text: "Tests failed. Fix failing tests before pushing."
clippy:
run: cargo clippy --all-targets --all-features -- -D warnings
fail_text: "Clippy found warnings. Fix them before pushing."