Run clippy, audit, and test also on Cargo.lock changes

This commit is contained in:
Dreaded_X 2025-03-21 01:21:50 +01:00
parent a4deeac442
commit cc9a8c787f
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -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