-
Notifications
You must be signed in to change notification settings - Fork 124
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.13 KB
/
.pre-commit-config.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
39
40
41
42
43
44
45
46
47
48
49
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-json
- id: detect-private-key
- id: trailing-whitespace
exclude: >
(?x)^(
docs/.+
)$
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-byte-order-marker
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
exclude: >
(?x)^(
docs/.+
)$
- id: check-executables-have-shebangs
- id: flake8
- id: no-commit-to-branch
args: [--branch, master]
- id: pretty-format-json
args: ['--autofix']
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: forbid-binary
exclude: >
(?x)^(
.+\.png|
.+\.woff|
.+\.woff2|
.+\.tff|
.+\.ico
)$
- id: shellcheck
- repo: https://github.com/dnephin/pre-commit-golang.git
rev: v0.3.5
hooks:
- id: go-fmt
- id: golangci-lint
- id: go-vet
- id: go-unit-tests
- id: go-build