Skip to content

Commit cca32b6

Browse files
committed
chore: add cargo fmt precommit hook
1 parent b9b0895 commit cca32b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lefthook.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
fmt:
5+
run: cargo fmt --all -- --check
6+
fail_text: "Code is not formatted. Run 'cargo fmt' and commit again."
7+

0 commit comments

Comments
 (0)