-
Notifications
You must be signed in to change notification settings - Fork 136
/
.pre-commit-config.yaml
45 lines (44 loc) · 1.09 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args: ['--allow-multiple-documents']
- id: check-json
- id: detect-private-key
- id: trailing-whitespace
- 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
- 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: 1.11.0
hooks:
- id: forbid-binary
exclude: >
(?x)^(
.+\.png|
.+\.woff|
.+\.woff2|
.+\.tff|
.+\.ico
)$
- id: shellcheck
- id: git-check
- repo: https://github.com/dnephin/pre-commit-golang.git
rev: v0.3.4
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
- id: go-unit-tests
- id: go-build