| 1 |
|
| 2 |
|
| 3 |
repos: |
| 4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 |
rev: v2.5.0 |
| 6 |
hooks: |
| 7 |
- id: check-executables-have-shebangs |
| 8 |
stages: [commit, manual] |
| 9 |
exclude: ^vendor/ |
| 10 |
|
| 11 |
- id: check-json |
| 12 |
stages: [commit, manual] |
| 13 |
|
| 14 |
- id: check-yaml |
| 15 |
stages: [commit, manual] |
| 16 |
|
| 17 |
- id: check-merge-conflict |
| 18 |
stages: [commit, manual] |
| 19 |
|
| 20 |
- id: mixed-line-ending |
| 21 |
args: ["--fix=no"] |
| 22 |
stages: [commit, manual] |
| 23 |
|
| 24 |
- id: no-commit-to-branch |
| 25 |
args: ["--branch", "master", "--branch", "development"] |
| 26 |
stages: [commit] |
| 27 |
|
| 28 |
- repo: https://github.com/domodwyer/pre-commit |
| 29 |
rev: v3.0.1 |
| 30 |
hooks: |
| 31 |
- id: go-test |
| 32 |
stages: [commit, manual] |
| 33 |
types: [go] |
| 34 |
args: ["-timeout=30s"] |
| 35 |
|
| 36 |
- id: go-goimports |
| 37 |
stages: [commit] |
| 38 |
types: [go] |
| 39 |
|
| 40 |
- id: go-golangci-lint |
| 41 |
args: [--new-from-rev=origin/master] |
| 42 |
stages: [commit, push] |
| 43 |
types: [go] |
| 44 |
|
| 45 |
- id: todo-tags |
| 46 |
stages: [push, manual] |
| 47 |
types: [go] |
| 48 |
args: ["--tag=#"] |
| 49 |
|
| 50 |
- id: todo-branch-tags |
| 51 |
stages: [post-checkout] |
| 52 |
args: ["#[0-9]+"] |