forked from OpenZeppelin/openzeppelin-relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (80 loc) · 1.91 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (80 loc) · 1.91 KB
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
---
minimum_pre_commit_version: 3.5.0
default_install_hook_types:
- commit-msg
- pre-commit
- pre-push
default_stages:
- pre-commit
- pre-push
ci:
autofix_commit_msg: 'chore(pre-commit): autofix run'
autoupdate_commit_msg: 'chore(pre-commit): autoupdate hooks'
repos:
- repo: local
hooks:
- id: pre-commit
name: Update pre-commit
entry: pre-commit install --install-hooks -t pre-commit -t pre-push
pass_filenames: false
language: system
files: ^\.pre-commit-config.yaml$
- id: rustfmt
name: rustfmt
entry: cargo fmt
pass_filenames: false
language: system
types:
- rust
- id: clippy
name: clippy
entry: cargo clippy --workspace --lib --bins -- --no-deps -D warnings
pass_filenames: false
language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
exclude: ^.*tsconfig\.json$
- id: check-toml
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.17.0
hooks:
- id: yamlfix
args:
- -c
- .yamlfix.toml
- repo: https://github.com/crate-ci/committed
rev: v1.1.5
hooks:
- id: committed
stages:
- commit-msg
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages:
- commit-msg
args:
- --strict
- build
- chore
- ci
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test