-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (47 loc) · 1.14 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (47 loc) · 1.14 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
40
41
42
43
44
45
46
47
48
49
50
51
52
---
default_stages: [pre-commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-json
- repo: local
hooks:
- id: goimports
name: goimports
description: Runs goimports
entry: go run golang.org/x/tools/cmd/goimports@latest -local github.com/renderinc -w
language: system
files: '\.go$'
pass_filenames: true
- id: go-mod-tidy
name: go mod tidy
description: Runs go mod tidy
entry: go mod tidy
language: system
pass_filenames: false
files: '\.(go|mod|sum)$'
- id: go-vet
name: go vet
description: Runs go vet for static analysis
entry: go vet ./...
language: system
types: [go]
pass_filenames: false
- id: go-test
name: go test
description: Runs go test
entry: go test -v ./...
language: system
types: [go]
pass_filenames: false
stages: [pre-push, manual]