-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 2.35 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 2.35 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
---
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-pattern-library
name: validate-pattern-library
entry: python scripts/check_pattern_library.py
language: python
additional_dependencies:
- PyYAML>=6.0,<7.0
pass_filenames: false
files: >-
^(README\.md|docs/.+\.md|patterns/.+\.md|schemas/pattern-library\.json|
scripts/check_pattern_library\.py|notes/.+\.md)$
- id: test-validation-contracts
name: test-validation-contracts
entry: python -m unittest discover -s tests -p test_*.py
language: python
additional_dependencies:
- PyYAML>=6.0,<7.0
- jsonschema>=4.23,<5.0
pass_filenames: false
always_run: true
- 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: >-
^(README\.md|TryHackMe/(?!_meta/).+\.md|notes/.+\.md|
patterns/.+\.md)$