-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (31 loc) · 984 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
description: Format files with rustfmt.
entry: cargo fmt --all -- --check
language: rust
files: \.rs$
- id: cargo-clippy
name: cargo clippy
description: Lint rust sources
entry: cargo clippy --all-targets --all-features --tests --benches -- -D warnings
language: rust
files: \.rs$
pass_filenames: false
# - id: cargo-deny
# name: cargo deny check
# description: Check cargo dependencies
# entry: bash -c 'cargo deny check -d'
# language: rust
# files: \.rs$