-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (41 loc) · 1.29 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (41 loc) · 1.29 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
exclude: ^screenshots/
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [json, yaml, markdown]
- repo: local
hooks:
- id: golangci-lint
name: golangci-lint
entry:
bash -c 'export GOPATH="$(pwd)/.go" GOMODCACHE="$(pwd)/.go/pkg/mod"
GOCACHE="$(pwd)/.go/cache" && nix develop --command golangci-lint run
--fix ./...'
language: system
pass_filenames: false
files: \.go$
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 42.84.0
hooks:
- id: renovate-config-validator
- repo: local
hooks:
- id: go-test-coverage
name: go-test-coverage
entry:
bash -c 'export GOPATH="$(pwd)/.go" GOMODCACHE="$(pwd)/.go/pkg/mod"
GOCACHE="$(pwd)/.go/cache" && nix develop --command bash -c "go test
-coverprofile=coverage.out ./... && go-test-coverage --config
.testcoverage.yaml"'
language: system
pass_filenames: false
files: \.go$