From a32326c8871deef99de557ad93e4d10e6bb6bfb3 Mon Sep 17 00:00:00 2001 From: Alan Tang Date: Wed, 7 Jan 2026 21:46:42 +0800 Subject: [PATCH] chore: check for redundant pre-commit hooks (#7506) Signed-off-by: StandingMan --- .pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6fb2ab938c..48e428aa09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,8 +15,11 @@ repos: rev: v1.0 hooks: - id: fmt + args: ["--", "--check"] + stages: [commit-msg] - id: clippy args: ["--workspace", "--all-targets", "--all-features", "--", "-D", "warnings"] - stages: [pre-push] + stages: [commit-msg] - id: cargo-check args: ["--workspace", "--all-targets", "--all-features"] + stages: [commit-msg]