|
81 | 81 | minimum_pre_commit_version: 0.7.0 |
82 | 82 | - id: eslint |
83 | 83 | name: "UNTESTED: eslint" |
84 | | - description: '' |
| 84 | + description: "" |
85 | 85 | entry: hooks/web/js/eslint.sh |
86 | 86 | language: script |
87 | | - 'types': [javascript] |
| 87 | + "types": [javascript] |
88 | 88 | args: [] |
89 | 89 | require_serial: false |
90 | | - minimum_pre_commit_version: '0' |
| 90 | + minimum_pre_commit_version: "0" |
91 | 91 | - id: fixmyjs |
92 | 92 | name: "UNTESTED: fixmyjs" |
93 | | - description: '' |
| 93 | + description: "" |
94 | 94 | entry: hooks/web/js/fixmyjs.sh |
95 | 95 | language: script |
96 | | - 'types': [javascript] |
| 96 | + "types": [javascript] |
97 | 97 | args: [] |
98 | 98 | require_serial: false |
99 | | - minimum_pre_commit_version: '0' |
| 99 | + minimum_pre_commit_version: "0" |
100 | 100 | - id: jshint |
101 | 101 | name: "UNTESTED: jshint" |
102 | | - description: '' |
| 102 | + description: "" |
103 | 103 | entry: hooks/web/js/jshint.sh |
104 | 104 | language: script |
105 | 105 | # language: node |
106 | | - 'types': [javascript] |
| 106 | + "types": [javascript] |
107 | 107 | args: [] |
108 | 108 | require_serial: false |
109 | | - minimum_pre_commit_version: '0' |
| 109 | + minimum_pre_commit_version: "0" |
110 | 110 | - id: scss-lint |
111 | 111 | name: scss_lint |
112 | | - description: '' |
| 112 | + description: "" |
113 | 113 | entry: hooks/web/scss/scss-lint.sh |
114 | 114 | language: script |
115 | 115 | # language: ruby |
116 | | - 'types': [scss] |
| 116 | + "types": [scss] |
117 | 117 | args: [] |
118 | 118 | require_serial: false |
119 | 119 | additional_dependencies: [] |
120 | | - minimum_pre_commit_version: '0' |
| 120 | + minimum_pre_commit_version: "0" |
121 | 121 | - id: yamlfmt |
122 | 122 | name: "UNTESTED: yamlfmt" |
123 | 123 | description: This hook uses github.com/google/yamlfmt to format yaml files. Requires golang >1.18 to be installed. |
|
127 | 127 | args: [] |
128 | 128 | require_serial: false |
129 | 129 | additional_dependencies: [] |
130 | | - minimum_pre_commit_version: '0' |
| 130 | + minimum_pre_commit_version: "0" |
131 | 131 | - id: commitlint |
132 | 132 | name: "UNTESTED: commitlint" |
133 | 133 | description: Commitlint hook |
134 | 134 | entry: hooks/commits/commitlint.sh |
135 | 135 | language: script |
136 | 136 | require_serial: false |
137 | 137 | additional_dependencies: [] |
138 | | - minimum_pre_commit_version: '0' |
| 138 | + minimum_pre_commit_version: "0" |
139 | 139 | pass_filenames: false |
140 | 140 | always_run: true |
141 | 141 | - id: gitlint |
|
213 | 213 | # args: [] |
214 | 214 | require_serial: false |
215 | 215 | additional_dependencies: [] |
216 | | - minimum_pre_commit_version: '0' |
| 216 | + minimum_pre_commit_version: "0" |
217 | 217 | pass_filenames: false |
218 | 218 | # - id: tfupdate |
219 | 219 | # name: "UNTESTED: tfupdate" |
|
236 | 236 | always_run: true |
237 | 237 | require_serial: false |
238 | 238 | # additional_dependencies: [] |
239 | | - minimum_pre_commit_version: '0' |
| 239 | + minimum_pre_commit_version: "0" |
240 | 240 | - id: dead-links |
241 | 241 | name: "Check Markdown Links" |
242 | 242 | description: Checks markdown files for dead relative links. |
|
312 | 312 | args: [] |
313 | 313 | types: [rust] |
314 | 314 | 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