-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
35 lines (35 loc) · 1.03 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
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-json
- id: check-yaml
- id: check-toml
- id: pretty-format-json
args: ["--autofix", "--no-sort-keys"]
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
hooks:
- id: markdown-link-check
types: [file]
files: \.(md|qmd)$
args: [ "-q", "-c markdown-link-checker-config.json" ]
- repo: local
hooks:
- id: check-front-matter
name: Check Front Matter for Attributes
entry: python checks/check_frontmatter.py
language: python
files: \.md$
additional_dependencies: [python-frontmatter]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
types: [ file ]
files: \.(md|qmd)$
args: [ "--fix" ]