-
Notifications
You must be signed in to change notification settings - Fork 247
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (46 loc) · 1.44 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (46 loc) · 1.44 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-merge-conflict
- id: detect-aws-credentials
args:
- "--allow-missing-credentials"
- id: detect-private-key
exclude: "src/test/e2e/29_config_file_test.go"
- id: end-of-file-fixer
exclude: |
(?x)^(
src/internal/packager/images/testdata/.*|
site/src/content/docs/commands/.*
)$
- id: fix-byte-order-marker
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: site/src/content/docs/commands/.*
- repo: https://github.com/sirosen/texthooks
rev: 72a68994497c827ced727b7c6b2567cfc5a96cb2 # 0.6.4
hooks:
- id: fix-smartquotes
- repo: local
hooks:
- id: check-docs-and-schema
name: Check for outdated docs and Zarf schema
entry: ./hack/check-zarf-docs-and-schema.sh
files: "src/types/types.go"
types: [go]
language: script
- id: goimports
name: goimports
entry: golangci-lint fmt
types: [go]
language: system
pass_filenames: false
- id: lint
name: golangci-lint go lint
entry: golangci-lint run
types: [go]
language: system
pass_filenames: false