[pre-commit]
commands = {
fmt = {
run = "cargo fmt --all -- --check",
stage = true,
env = { RUST_LOG = "error" }
},
clippy = {
run = "cargo clippy --all-targets --all-features -- -D warnings",
stage = true,
pass = ["fmt"]
},
actionlint = {
run = "actionlint",
pass = ["clippy"]
}
}
[pre-push]
commands = {
clippy = {
run = "cargo clippy --all-targets --all-features -- -D warnings",
pass = ["audit"]
},
"taplo-check" = {
run = "taplo fmt --check",
pass = ["clippy"]
},
audit = {
run = "cargo audit",
pass = ["taplo-check"]
}
}