-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (36 loc) · 951 Bytes
/
.pre-commit-config.yaml
File metadata and controls
41 lines (36 loc) · 951 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
40
41
---
repos:
- 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
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.2
hooks:
- id: terraform_fmt
- repo: local
hooks:
- id: go-fmt
name: go fmt
language: system
entry: bash -c 'cd app && gofmt -s -w .'
pass_filenames: false
types: [go]
- id: golangci-lint
name: go lint
language: system
entry: bash -c 'cd app/ocost && golangci-lint run'
pass_filenames: false
types: [go]
- id: go-test
name: go test
language: system
entry: bash -c 'cd app/ocost/cmd && go test -v'
pass_filenames: false
types: [go]