diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000000..2fe00c2d6e --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,7 @@ +pre-commit: + parallel: true + commands: + fmt: + run: cargo fmt --all -- --check + fail_text: "Code is not formatted. Run 'cargo fmt' and commit again." +