Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (56 loc) · 2.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (56 loc) · 2.36 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-merge-conflict
- id: check-added-large-files
- repo: local
hooks:
- id: golangci-lint-notebook-controller
name: golangci-lint (notebook-controller)
entry: bash -c 'cd components/notebook-controller && golangci-lint run --timeout=5m ./...'
language: golang
additional_dependencies: ['github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2']
files: ^components/notebook-controller/.*\.go$
pass_filenames: false
types: [go]
- id: golangci-lint-odh-notebook-controller
name: golangci-lint (odh-notebook-controller)
entry: bash -c 'cd components/odh-notebook-controller && golangci-lint run --timeout=5m ./...'
language: golang
additional_dependencies: ['github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2']
files: ^components/odh-notebook-controller/.*\.go$
pass_filenames: false
types: [go]
- id: go-mod-tidy-notebook-controller
name: go mod tidy (notebook-controller)
entry: bash -c 'cd components/notebook-controller && go mod tidy -diff'
language: system
files: ^components/notebook-controller/go\.(mod|sum)$
pass_filenames: false
types: [file]
- id: go-mod-tidy-odh-notebook-controller
name: go mod tidy (odh-notebook-controller)
entry: bash -c 'cd components/odh-notebook-controller && go mod tidy -diff'
language: system
files: ^components/odh-notebook-controller/go\.(mod|sum)$
pass_filenames: false
types: [file]
- id: go-vet-notebook-controller
name: go vet (notebook-controller)
entry: bash -c 'cd components/notebook-controller && go vet ./...'
language: system
files: ^components/notebook-controller/.*\.go$
pass_filenames: false
types: [go]
- id: go-vet-odh-notebook-controller
name: go vet (odh-notebook-controller)
entry: bash -c 'cd components/odh-notebook-controller && go vet ./...'
language: system
files: ^components/odh-notebook-controller/.*\.go$
pass_filenames: false
types: [go]