-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (38 loc) · 900 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (38 loc) · 900 Bytes
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: ["pre-push"]
exclude: '(^vendor|.*golden$)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-vcs-permalinks
- id: detect-private-key
exclude: ".*_test.go"
- repo: local
hooks:
- id: lint-go
name: "Lint GO"
entry: make
args: ["lint-go"]
language: system
types: [go]
pass_filenames: false
- id: test
name: "Unit testing"
entry: make
args: ["test"]
language: system
types: [go]
pass_filenames: false
- id: lint-yaml
name: "Lint YAML"
entry: make
args: ["lint-yaml"]
language: system
types: [yaml]
pass_filenames: false