-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
57 lines (56 loc) · 1.29 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
stages: [commit]
- id: check-json
stages: [commit]
- id: check-toml
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-case-conflict
stages: [commit]
- id: detect-private-key
stages: [commit]
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.11.3
hooks:
- id: typos
stages: [commit]
- repo: https://github.com/crate-ci/committed
rev: v1.0.20
hooks:
- id: committed
stages: [commit-msg]
- repo: local
hooks:
- id: cargo-check
name: cargo check
language: system
entry: cargo check
always_run: true
pass_filenames: false
files: \.rs$
- id: cargo-fmt
name: cargo fmt
language: system
entry: cargo fmt
always_run: true
pass_filenames: false
files: \.rs$
- id: cargo-clippy
name: cargo clippy
language: system
entry: cargo clippy -- --deny warnings
always_run: true
pass_filenames: false
files: \.rs$
- id: cargo-test
name: cargo test
language: system
entry: cargo test
always_run: true
pass_filenames: false
files: \.rs$