Skip to content

Commit c90883d

Browse files
committed
chore: add cargo fmt precommit hook (#2666)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent 3a8cb86 commit c90883d

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)