-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-hooks.yaml
37 lines (37 loc) · 1.08 KB
/
.pre-commit-hooks.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
# golang
- id: go-lint
name: lint golang files
description: ensures golang code meets the configured lint criteria.
entry: pre-commit-hooks/go-lint.sh
language: script
pass_filenames: false
stages: [pre-commit, pre-push, manual]
- id: go-mod-tidy
name: go mod tidy
description: ensure go mod is tidied before push
entry: pre-commit-hooks/go-mod-tidy.sh
language: script
stages: [pre-push, manual]
pass_filenames: false
# rust
- id: rust-lint
name: lint rust files
description: ensures rust code meets the configured lint criteria.
entry: pre-commit-hooks/rust-lint.sh
language: script
pass_filenames: false
stages: [pre-commit, pre-push, manual]
- id: rust-fmt
name: format rust files
description: ensures rust code is formatted as the project expects.
entry: pre-commit-hooks/rust-fmt.sh
language: script
pass_filenames: false
stages: [pre-commit, pre-push, manual]
# typos
- id: detect-typos
name: Check for typos
description: Check the code for any typos
entry: pre-commit-hooks/typos.sh
language: script
stages: [pre-commit, pre-push, manual]