From ee5c737b7f9d6c24d3cf5c87ef7481d177de0d17 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 21 Feb 2024 23:22:16 +0100 Subject: [PATCH] rust: add rust hooks Signed-off-by: Matej Focko --- .pre-commit-hooks.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..3abcfe7 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,14 @@ +- id: rust-fmt + name: rustfmt + description: Format Rust sources with the ‹rustfmt›. + entry: rustfmt + language: system + types: + - rust +- id: rust-clippy + name: clippy + description: Lint Rust sources with ‹clippy›. + entry: clippy-driver + language: system + types: + - rust