From cc9a8c787f0481a58d89d39479256ad578a6facc Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 21 Mar 2025 01:21:50 +0100 Subject: [PATCH] Run clippy, audit, and test also on Cargo.lock changes --- .pre-commit-config.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4147d2..b18a809 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,5 @@ +fail_fast: true + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 @@ -31,7 +33,8 @@ repos: entry: cargo clippy language: system args: ["--", "-D", "warnings"] - types: [rust] + types: [file] + files: (\.rs|Cargo.lock)$ pass_filenames: false - id: audit @@ -39,7 +42,8 @@ repos: description: Audit packages entry: cargo audit language: system - types: [rust] + types: [file] + files: (\.rs|Cargo.lock)$ pass_filenames: false - id: test @@ -48,7 +52,8 @@ repos: entry: cargo test language: system args: ["--workspace"] - types: [rust] + types: [file] + files: (\.rs|Cargo.lock)$ pass_filenames: false - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks