-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (34 loc) · 873 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
39 lines (34 loc) · 873 Bytes
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
# Pre-commit hooks configuration
# Install with: pip install pre-commit && pre-commit install
repos:
- repo: local
hooks:
- id: go-vet
name: go vet
entry: go vet ./...
language: system
files: \.go$
pass_filenames: false
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run
language: system
files: \.go$
pass_filenames: false
- id: go-fmt
name: go fmt
entry: gofmt -w
language: system
files: \.go$
- id: go-imports
name: goimports
entry: goimports -w
language: system
files: \.go$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict