forked from iost-official/iost-pre-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhooks.yaml
36 lines (36 loc) · 1.04 KB
/
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
- id: go-fmt
name: 'go fmt'
entry: run-go-fmt.sh
files: '\.go$'
language: 'script'
description: "Runs `gofmt`, requires golang"
- id: py-yapf
name: 'google yapf for python'
entry: run-py-yapf.sh
files: '\.py$'
language: 'script'
description: "Runs google's `yapf` on python files, requires ypapf, pip install yapf"
- id: go-imports
name: 'go imports'
entry: run-goimports.sh
files: '\.go$'
language: 'script'
description: "Runs `goimports`, requires golang"
- id: go-vet
name: 'go vet'
entry: run-go-vet.sh
files: '\.go$'
language: 'script'
description: "Runs `go vet`, requires golang"
- id: go-lint
name: 'go lint'
entry: run-go-lint.sh
files: '\.go$'
language: 'script'
description: "Runs `golint`, requires https://github.com/golang/lint"
- id: go-metalinter
name: 'go metalinter'
entry: run-go-metalinter.sh
files: '\.go$'
language: 'script'
description: "Runs `gometalinter`, requires https://github.com/alecthomas/gometalinter"