Skip to content

Commit

Permalink
chore: Restrict pre-commit runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Sep 2, 2024
1 parent 1c7a5a1 commit 7354876
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
repos:
- repo: local
hooks:
- id: test
- id: fmt
name: cargo fmt
entry: cargo fmt
language: system
pass_filenames: false
files: \.rs$

- repo: local
hooks:
Expand All @@ -14,6 +15,7 @@ repos:
entry: cargo clippy
language: system
pass_filenames: false
files: \.rs$

- repo: local
hooks:
Expand All @@ -22,6 +24,7 @@ repos:
entry: cargo test
language: system
pass_filenames: false
files: \.rs$

- repo: local
hooks:
Expand All @@ -30,6 +33,7 @@ repos:
entry: cargo deny check --hide-inclusion-graph
language: system
pass_filenames: false
files: ^Cargo\.(toml|lock)$

- repo: local
hooks:
Expand All @@ -38,6 +42,7 @@ repos:
entry: cargo +nightly udeps
language: system
pass_filenames: false
files: ^Cargo\.(toml|lock)$

- repo: local
hooks:
Expand All @@ -46,6 +51,7 @@ repos:
entry: cargo audit
language: system
pass_filenames: false
files: ^Cargo\.(toml|lock)$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand Down

0 comments on commit 7354876

Please sign in to comment.