-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
86 lines (80 loc) · 2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
exclude: (?x)^(docs)
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: forbid-new-submodules
stages: [pre-commit]
- id: check-builtin-literals
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
stages: [pre-commit]
exclude: (?x)^(docs)
- id: git-dirty
stages: [pre-commit]
- id: git-check
stages: [pre-commit]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-crlf
stages: [pre-commit]
- id: remove-crlf
stages: [pre-commit]
- id: forbid-tabs
stages: [pre-commit]
- id: remove-tabs
stages: [pre-commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
stages: [pre-commit]
- id: cargo-check
stages: [pre-commit]
- id: clippy
stages: [pre-commit]
- repo: local
hooks:
- id: cargo-test
stages: [pre-commit]
name: cargo test
description: Run the test suite
entry: cargo test
language: system
types: [rust]
pass_filenames: false
- id: version-check
stages: [pre-commit]
name: version check
description: Check the version
entry: check-version.sh
language: script
types: [rust]
pass_filenames: false
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
stages: [pre-commit]
args:
- '--ignore-words-list=crate'