Run clippy, audit, and test also on Cargo.lock changes
This commit is contained in:
parent
a4deeac442
commit
cc9a8c787f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user