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: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 rev: v4.6.0
@ -31,7 +33,8 @@ repos:
entry: cargo clippy entry: cargo clippy
language: system language: system
args: ["--", "-D", "warnings"] args: ["--", "-D", "warnings"]
types: [rust] types: [file]
files: (\.rs|Cargo.lock)$
pass_filenames: false pass_filenames: false
- id: audit - id: audit
@ -39,7 +42,8 @@ repos:
description: Audit packages description: Audit packages
entry: cargo audit entry: cargo audit
language: system language: system
types: [rust] types: [file]
files: (\.rs|Cargo.lock)$
pass_filenames: false pass_filenames: false
- id: test - id: test
@ -48,7 +52,8 @@ repos:
entry: cargo test entry: cargo test
language: system language: system
args: ["--workspace"] args: ["--workspace"]
types: [rust] types: [file]
files: (\.rs|Cargo.lock)$
pass_filenames: false pass_filenames: false
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks