Skip to content

Commit e34704b

Browse files
committed
feat(hook): added frontmatter-validation hook
1 parent 975e28c commit e34704b

1 file changed

Lines changed: 26 additions & 16 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,43 +81,43 @@
8181
minimum_pre_commit_version: 0.7.0
8282
- id: eslint
8383
name: "UNTESTED: eslint"
84-
description: ''
84+
description: ""
8585
entry: hooks/web/js/eslint.sh
8686
language: script
87-
'types': [javascript]
87+
"types": [javascript]
8888
args: []
8989
require_serial: false
90-
minimum_pre_commit_version: '0'
90+
minimum_pre_commit_version: "0"
9191
- id: fixmyjs
9292
name: "UNTESTED: fixmyjs"
93-
description: ''
93+
description: ""
9494
entry: hooks/web/js/fixmyjs.sh
9595
language: script
96-
'types': [javascript]
96+
"types": [javascript]
9797
args: []
9898
require_serial: false
99-
minimum_pre_commit_version: '0'
99+
minimum_pre_commit_version: "0"
100100
- id: jshint
101101
name: "UNTESTED: jshint"
102-
description: ''
102+
description: ""
103103
entry: hooks/web/js/jshint.sh
104104
language: script
105105
# language: node
106-
'types': [javascript]
106+
"types": [javascript]
107107
args: []
108108
require_serial: false
109-
minimum_pre_commit_version: '0'
109+
minimum_pre_commit_version: "0"
110110
- id: scss-lint
111111
name: scss_lint
112-
description: ''
112+
description: ""
113113
entry: hooks/web/scss/scss-lint.sh
114114
language: script
115115
# language: ruby
116-
'types': [scss]
116+
"types": [scss]
117117
args: []
118118
require_serial: false
119119
additional_dependencies: []
120-
minimum_pre_commit_version: '0'
120+
minimum_pre_commit_version: "0"
121121
- id: yamlfmt
122122
name: "UNTESTED: yamlfmt"
123123
description: This hook uses github.com/google/yamlfmt to format yaml files. Requires golang >1.18 to be installed.
@@ -127,15 +127,15 @@
127127
args: []
128128
require_serial: false
129129
additional_dependencies: []
130-
minimum_pre_commit_version: '0'
130+
minimum_pre_commit_version: "0"
131131
- id: commitlint
132132
name: "UNTESTED: commitlint"
133133
description: Commitlint hook
134134
entry: hooks/commits/commitlint.sh
135135
language: script
136136
require_serial: false
137137
additional_dependencies: []
138-
minimum_pre_commit_version: '0'
138+
minimum_pre_commit_version: "0"
139139
pass_filenames: false
140140
always_run: true
141141
- id: gitlint
@@ -213,7 +213,7 @@
213213
# args: []
214214
require_serial: false
215215
additional_dependencies: []
216-
minimum_pre_commit_version: '0'
216+
minimum_pre_commit_version: "0"
217217
pass_filenames: false
218218
# - id: tfupdate
219219
# name: "UNTESTED: tfupdate"
@@ -236,7 +236,7 @@
236236
always_run: true
237237
require_serial: false
238238
# additional_dependencies: []
239-
minimum_pre_commit_version: '0'
239+
minimum_pre_commit_version: "0"
240240
- id: dead-links
241241
name: "Check Markdown Links"
242242
description: Checks markdown files for dead relative links.
@@ -312,3 +312,13 @@
312312
args: []
313313
types: [rust]
314314
pass_filenames: false
315+
- id: validate-frontmatter
316+
name: Validate Markdown Frontmatter
317+
description: Run `cargo bench` to Compile and execute benchmarks.
318+
entry: python3 ./scripts/validate-frontmatter.py
319+
language: system
320+
args: ["--config", ".frontmatter-config.json", "--cache", "./uuid-cache.json"]
321+
files: \.md$
322+
types: [text]
323+
exclude: ^(README\.md|CHANGELOG\.md|\.github/.*\.md|\.ai/templates/.*|\.ai/artifacts/.*|docs/prompts/.*|docs/project-knowledge/user/.*)$
324+
pass_filenames: true

0 commit comments

Comments
 (0)