diff --git a/prek.toml b/prek.toml new file mode 100644 index 0000000..37c38d6 --- /dev/null +++ b/prek.toml @@ -0,0 +1,19 @@ +[[repos]] +repo = "local" +hooks = [ + { + id = "cargo-fmt", + name = "cargo-fmt", + language = "system", + entry = "cargo fmt --", + types = ["rust"], + }, + { + id = "cargo-clippy", + name = "cargo-clippy", + language = "system", + entry = "cargo clippy -- -Dwarnings", + types = ["rust"], + pass_filenames = false, + }, +]