Skip to content

Commit 3d4eb28

Browse files
committed
Add markdownlint and doctoc to pre-commit
1 parent 44b6775 commit 3d4eb28

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.markdownlint.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"default": true,
3+
"MD010": {
4+
"code_blocks": false
5+
},
6+
"MD013": {
7+
"code_blocks": false,
8+
"tables": false
9+
}
10+
}

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,19 @@ repos:
2121
additional_dependencies:
2222
- flake8-bugbear==23.9.16
2323
- flake8-comprehensions==3.14.0
24+
- repo: https://github.com/igorshubovych/markdownlint-cli
25+
rev: v0.37.0
26+
hooks:
27+
- id: markdownlint
28+
exclude: |
29+
(?x)^(
30+
ISSUE_TEMPLATE\.md
31+
)
32+
- repo: https://github.com/thlorenz/doctoc
33+
rev: v2.2.0
34+
hooks:
35+
- id: doctoc
36+
files: |
37+
(?x)^(
38+
README\.md
39+
)

0 commit comments

Comments
 (0)