Skip to content

Commit b89ab42

Browse files
anishasthanaopenshift-merge-robot
authored andcommitted
Add Pre-commit config
Signed-off-by: Anish Asthana <[email protected]>
1 parent de8e6ae commit b89ab42

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.pre-commit-config.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.3.0
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: README.md
7+
- id: check-merge-conflict
8+
- id: end-of-file-fixer
9+
- id: check-added-large-files
10+
- id: check-case-conflict
11+
- id: check-json
12+
- id: check-symlinks
13+
- id: detect-private-key
14+
15+
- repo: https://github.com/adrienverge/yamllint.git
16+
rev: v1.25.0
17+
hooks:
18+
- id: yamllint
19+
files: \.(yaml|yml)$
20+
types: [file, yaml]
21+
entry: yamllint --strict
22+
23+
- repo: https://github.com/dnephin/pre-commit-golang
24+
rev: c17f835cf9
25+
hooks:
26+
- id: go-fmt
27+
- id: golangci-lint
28+
- id: go-build
29+
- id: go-mod-tidy

0 commit comments

Comments
 (0)