-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.2 KB
/
.pre-commit-config.yaml
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-yaml
exclude: configs/helm/templates/
- id: check-json
- id: end-of-file-fixer
- id: detect-private-key
- id: check-symlinks
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
hooks:
- id: golangci-lint
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.3
hooks:
- id: gofumpt # requires https://github.com/mvdan/gofumpt
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint # requires https://github.com/DavidAnson/markdownlint-cli2
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
hooks:
- id: yamllint # requires https://github.com/adrienverge/yamllint
- repo: https://github.com/google/go-jsonnet
rev: v0.20.0
hooks:
- id: jsonnet-format
- repo: local
hooks:
- id: grafana-dashboards
name: "grafana dashboards"
entry: scripts/hooks/check_grafana_dashboards_changes.sh
language: "script"
pass_filenames: false
files: configs/grafana