-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (42 loc) · 1.17 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
41
42
43
44
45
46
47
minimum_pre_commit_version: '2.9.3'
repos:
- repo: https://github.com/pre-commit/pre-commit
rev: v2.17.0
hooks:
- id: validate_manifest
- repo: https://github.com/golangci/golangci-lint
# When updating this, also update .golangci.yml accordingly
rev: v1.51.2
hooks:
- id: golangci-lint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-merge-conflict
stages: [commit]
- id: check-symlinks
stages: [commit]
- id: check-yaml
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- repo: https://github.com/hadenlabs/pre-commit-hooks
rev: 0.4.0
hooks:
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
- repo: local
hooks:
- id: mdtoc
name: Markdown Table of Contents
language: system
entry: go run sigs.k8s.io/mdtoc@latest --inplace
files: ^README.md$
- id: embed_files
name: Embed files into README
language: system
entry: go run sigs.k8s.io/mdtoc@latest --inplace
files: ^README.md$