From 4bca6857b4fbb19c22eec9c214208190effad8dc Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 13 Jul 2026 08:34:19 -0500 Subject: [PATCH] prek: add pre-commit checker for cargo-fmt and cargo-clippy --- prek.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 prek.toml 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, + }, +]