forked from SUSE/skuba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 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
41
42
43
44
45
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-symlinks
- id: check-merge-conflict
- id: check-yaml
- id: check-executables-have-shebangs
- repo: local
hooks:
- id: go-fmt
name: go fmt
entry: ./scripts/go-fmt.sh
files: '\.go$'
language: script
- id: go-vet
name: go vet
entry: ./scripts/go-vet.sh
files: '\.go$'
language: script
- id: go-imports
name: go imports
entry: ./scripts/go-imports.sh
files: '\.go$'
language: script
- repo: https://github.com/golangci/golangci-lint
rev: v1.27.0
hooks:
- id: golangci-lint
args: [--verbose, --timeout=3m]
files: '\.go$'
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
hooks:
- id: autopep8
files: '\.py$'
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.21.0
hooks:
- id: terraform_fmt
files: '\.tf$'