introduce lefthook support to check commits

This commit is contained in:
Alex Zenla
2024-02-01 10:36:54 +00:00
parent e7cea3d7ed
commit cbfac5cdf4
3 changed files with 16 additions and 2 deletions

14
lefthook.toml Normal file
View File

@ -0,0 +1,14 @@
[pre-commit]
parallel = true
[pre-commit.commands.build]
run = "cargo build --target x86_64-unknown-linux-gnu"
[pre-commit.commands.test]
run = "cargo test --target x86_64-unknown-linux-gnu"
[pre-commit.commands.fmt]
run = "cargo fmt --all -- --check"
[pre-commit.commands.clippy]
run = "cargo clippy --target x86_64-unknown-linux-gnu"