Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 663f856

Browse files
committed
Add mdformat hook to maintain markdown formatting.
Thanks mdeweerd!
1 parent 27d8db6 commit 663f856

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ repos:
1414
- id: check-ast
1515
- id: requirements-txt-fixer
1616

17-
# General Project code formatter.
17+
# Format markdown docs.
18+
- repo: https://github.com/executablebooks/mdformat
19+
# Do this before other tools "fixing" the line endings
20+
rev: 0.7.17
21+
hooks:
22+
- id: mdformat
23+
args: [--number, --end-of-line=keep]
24+
additional_dependencies:
25+
- mdformat-toc
26+
- mdformat-config
27+
- mdformat-gfm
28+
29+
# General project code formatter.
1830
- repo: https://github.com/psf/black
1931
rev: 24.1.0
2032
hooks:

0 commit comments

Comments
 (0)