-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.58 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.58 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
---
minimum_pre_commit_version: "3.6.0"
repos:
- repo: local
hooks:
- id: validate-tags-doc
name: validate-tags-doc
entry: python scripts/render_tags_doc.py --check
language: system
pass_filenames: false
always_run: true
- id: validate-readme-snapshot
name: validate-readme-snapshot
entry: python scripts/render_readme_snapshot.py --check
language: system
pass_filenames: false
files: >-
^(README\.md|TryHackMe/(?!_meta/).+\.md|notes/.+\.md|
scripts/render_readme_snapshot\.py)$
- id: validate-frontmatter
name: validate-frontmatter
entry: python scripts/check_markdown.py
language: python
additional_dependencies:
- PyYAML>=6.0,<7.0
- jsonschema>=4.23,<5.0
files: ^(TryHackMe|notes)/.*\.md$
- id: validate-placeholders
name: validate-placeholders
entry: python scripts/check_placeholders.py
language: system
pass_filenames: true
files: ^(TryHackMe/(?!_meta/)|notes/).+\.md$
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
- repo: https://github.com/stacknil/repo-sentinel-lite
rev: v0.6.1
hooks:
- id: repo-sentinel-error
stages:
- pre-push
- manual
- repo: local
hooks:
- id: markdownlint-cli2
name: markdownlint-cli2
entry: python scripts/run_markdownlint.py
language: system
pass_filenames: true
files: ^(TryHackMe/(?!_meta/)|notes/).+\.md$