Skip to content

Commit 0654653

Browse files
authored
style(lefthook): add config (#713)
1 parent e7d6bd0 commit 0654653

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.lefthook.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
fmt:
5+
glob: "*.rs"
6+
run: cargo fmt --all
7+
stage_fixed: true
8+
9+
clippy:
10+
glob: "*.rs"
11+
run: cargo clippy --all --all-features -- -D warnings
12+
13+
output:
14+
- summary
15+
- failure

0 commit comments

Comments
 (0)