From c49533da57edfc7b4732c43d243e86fcea35bfa5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 1 Jan 2024 11:57:42 +0000 Subject: [PATCH] Rename clippy to cargo-clippy for consistency Add cargo-test hook to run packages tests --- .pre-commit-hooks.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 0ffe38d..4842a5e 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -12,11 +12,18 @@ language: system types: [rust] pass_filenames: false -- id: clippy - name: clippy +- id: cargo-clippy + name: cargo clippy description: Lint rust sources entry: cargo clippy language: system args: ["--", "-D", "warnings"] types: [rust] pass_filenames: false +- id: cargo-test + name: cargo test + description: Run package tests + entry: cargo test + language: system + args: ["--"] + pass_filenames: false