forked from domodwyer/pre-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
38 lines (35 loc) · 962 Bytes
/
.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
38
- id: go-test
name: 'Go tests'
entry: run-go-test.sh
types: [go]
language: 'script'
pass_filenames: false
minimum_pre_commit_version: 0.15.0
description: "Runs `go test ./...` at the repo root"
- id: goimports
name: 'Check Go imports'
entry: run-go-imports.sh
types: [go]
language: 'script'
pass_filenames: true
minimum_pre_commit_version: 0.15.0
description: "Runs `goimports` on changed files"
require_serial: true
exclude: 'vendor/'
- id: dep-check
name: 'dep-check'
entry: run-dep-check.sh
types: [go]
language: 'script'
pass_filenames: false
minimum_pre_commit_version: 0.15.0
description: "Runs `dep check`, ensuring all imports are vendored"
- id: todo-jira-check
name: 'TODOs have JIRA tags'
entry: todo-jira-check.py
types: [text]
language: 'script'
pass_filenames: true
minimum_pre_commit_version: 0.15.0
exclude: 'vendor/'
description: "Checks changes contain only TODOs with JIRA tags"