-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
52 lines (48 loc) · 1.25 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [--maxkb=250]
- id: detect-private-key
- id: check-yaml
- id: check-toml
- id: check-vcs-permalinks
- id: check-case-conflict
- id: check-symlinks
- id: check-merge-conflict
- id: destroyed-symlinks
- id: fix-byte-order-marker
- id: mixed-line-ending
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
hooks:
- id: pretty-format-toml
args: [--autofix]
exclude: .*\.lock
- id: pretty-format-yaml
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
- id: markdownlint-fix
name: Format Markdown files
exclude: ^utils
- repo: local
hooks:
- id: verify_data_matches_folder
name: verify_data_matches_folder
files: ^content/(blog|til)/.*/index\.md$
stages: [commit]
language: python
additional_dependencies:
- python-frontmatter==1.1.0
args: []
entry: python scripts/verify_data_matches_folder.py