Skip to content

Commit 5c794f0

Browse files
committed
chore: add cargo fmt precommit hook
1 parent d6f26f9 commit 5c794f0

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)