-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
124 lines (122 loc) · 2.94 KB
/
.pre-commit-config.yaml
File metadata and controls
124 lines (122 loc) · 2.94 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright 2021 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
exclude: ^third_party/.*$
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: local
hooks:
- id: update-mholt-archives-fork
name: Update mholt/archives fork
stages: [pre-commit]
entry: task fork-archives:update
language: system
types_or:
- go-mod
- go-sum
pass_filenames: false
- id: go-mod-tidy
name: go mod tidy
stages: [pre-commit]
entry: task go:mod-tidy
language: system
types_or:
- go-mod
- go-sum
- go
pass_filenames: false
- id: golangci-lint
name: golangci-lint
stages: [pre-commit]
entry: task go:lint
language: system
types: [go]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: check-yaml
args: ["-m", "--unsafe"]
stages: [pre-commit]
- id: mixed-line-ending
args: ["-f", "lf"]
stages: [pre-commit]
- id: no-commit-to-branch
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint-system
stages: [pre-commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci
args: ["--commits", "origin/main..HEAD"]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
stages: [pre-commit]
args: ["-s", "-i", "2"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
stages: [pre-commit]
args: ["-e", "SC2211"]
exclude: ^(\.envrc|\.specify/scripts/.*)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint
stages: [pre-commit]
exclude: ^(CHANGELOG\.md|\.specify/templates/.*|\.cursor/commands/.*)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: License headers - Go
stages: [pre-commit]
files: "(.*\\.go|go.mod)$"
exclude: "^helm/internal/.*\\.go$"
args:
- --license-filepath
- header.txt
- --comment-style
- //
- --allow-past-years
- id: insert-license
name: License headers - YAML
stages: [pre-commit]
files: \.ya?ml$
args:
- --license-filepath
- header.txt
- --allow-past-years
- id: insert-license
name: License headers - Markdown
stages: [pre-commit]
files: \.md$
exclude: ^CHANGELOG.md$
args:
- --license-filepath
- header.txt
- --comment-style
- <!--|| -->
- --allow-past-years