-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (47 loc) · 1.25 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
---
# pre-commit configuration
#
# Uses https://pre-commit.com/
#
# Install with:
#
# pre-commit install-hooks
#
# Requires:
# - rust (cargo & clippy in path)
# - https://github.com/commitizen-tools/commitizen
#
# To run manually:
# pre-commit run --all
repos:
- repo: https://github.com/domodwyer/pre-commit
rev: v3.5.0
hooks:
- id: rust-clippy
stages: [pre-commit, pre-push]
- id: rust-test
stages: [pre-commit, pre-push]
- id: rust-fmt
stages: [pre-commit, pre-push]
- id: rust-doc
stages: [pre-push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 66ecc5beb42a1d1adb6eb3c18e53bce4bc56fdba
hooks:
- id: check-executables-have-shebangs
stages: [pre-commit, manual]
- id: check-json
stages: [pre-commit, manual]
- id: check-yaml
args: ["--allow-multiple-documents"]
stages: [pre-commit, manual]
- id: check-merge-conflict
stages: [pre-commit, manual]
- id: mixed-line-ending
args: ["--fix=no"]
stages: [pre-commit, manual]
- repo: https://github.com/commitizen-tools/commitizen
rev: 3c7d67d39ad19fbcc3a2c66bc89708fe27347b6d
hooks:
- id: commitizen
stages: [commit-msg]