-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (37 loc) · 1.05 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (37 loc) · 1.05 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
name: Trim trailing whitespace
- id: end-of-file-fixer
name: Fix end of files
- id: check-yaml
name: Check YAML syntax
- id: check-added-large-files
name: Check for large files
args: ['--maxkb=1024']
- id: check-merge-conflict
name: Check for merge conflicts
- id: mixed-line-ending
name: Fix mixed line endings
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
name: Format Go code (gofmt)
- id: go-imports
name: Organize Go imports (goimports)
- id: go-mod-tidy
name: Tidy Go modules (go mod tidy)
- id: go-unit-tests
name: Run Go unit tests
args: [-short]
- repo: local
hooks:
- id: golangci-lint
name: Lint Go code (golangci-lint)
entry: make lint
language: system
types: [go]
pass_filenames: false