-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
130 lines (124 loc) · 3.16 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
130 lines (124 loc) · 3.16 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
125
126
127
128
129
130
ci:
autoupdate_schedule: monthly
default_language_version:
node: 24.11.1
default_stages:
- pre-commit
exclude: >
(?x)^(
^(\/|)vendor\/(.*?)$|
.+\.node_modules\/.*$|
.+\.external_modules.*$|
.+\.terraform.*$|
pnpm-lock.yaml|
.+\.venv.*$|
.+\.lock$|
.+\.mdx$|
)$
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args:
- --ignore-words=.ci/linters/.codespell-ignores
exclude: >
(?x)^(
AGENTS.md|
CHANGELOG.md|
^\.(opencode|claude)/skills/.*$|
app/components/sections\/.*$|
app/data\/.*$|
app/ia/datasets\/.*$|
app/routes\/.*$|
data/patterns\/.*$|
openspec\/.*$|
go.mod|
go.sum|
openapi.yaml|
provision/prompts\/.*$|
docs/prompts/openspec\/.*$|
.+\.lock$|
.+\.mdx$|
.+\.node_modules\/.*$|
.+\.sops.*$|
.+\.vendor\/.*$|
)$
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.24.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@hadenlabs/commitlint-config-core"]
args:
- --config=.ci/linters/.commitlintrc.json
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: detect-private-key
files: ^(?!\.?git-crypt)
exclude: >
(?x)^(
.+\.gitleaks.toml$|
test/fixtures/keys/.*-test.*$
)$
- id: check-merge-conflict
- id: check-added-large-files
files: ^tf|-|\.(py|env|yml|yaml)$
- id: check-case-conflict
- id: check-json
exclude: >
(?x)^(
.zed/tasks.json$|
)$
- id: check-xml
- id: check-yaml
args:
- --allow-multiple-documents
exclude: >
(?x)^(
.*\.tpl\.yaml$
)$
- id: fix-byte-order-marker
- id: check-ast
- id: debug-statements
- id: check-docstring-first
- id: requirements-txt-fixer
- id: check-symlinks
- id: file-contents-sorter
- id: sort-simple-yaml
- repo: https://github.com/tcort/markdown-link-check
rev: v3.14.2
hooks:
- id: markdown-link-check
args:
- --config=.ci/linters/markdown-link-config.json
exclude: >
(?x)^(
.+\.docs/env-vars.md$|
.+\.tpl.md$|
data/patterns\/.*$|
docs/env-vars.md$|
docs\/include\/terraform.md$|
)$
- repo: https://github.com/hadenlabs/pre-commit-hooks
rev: 0.6.0
hooks:
- id: do-not-commit
- id: shellcheck
exclude: >
(?x)^(
.+\.provision/git/hooks/prepare-commit-msg$|
.+\.tpl.sh$|
.+\.envrc$|
)$
args:
- --exclude=SC1072,SC1073,SC2068
- id: gitleaks
args:
- --path=.
- --repo-config-path=.ci/linters/.gitleaks.toml
- --verbose
- id: hadolint
args:
- --config=.ci/linters/.hadolint.yaml