Skip to content

Commit d72bce1

Browse files
authored
style: use mdformat to format Markdown
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
1 parent 8787b45 commit d72bce1

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,30 @@ repos:
5353
- id: velin
5454
args: ["--write"]
5555
exclude: ^source/3rdparty
56-
# Python inside docs
57-
- repo: https://github.com/asottile/blacken-docs
58-
rev: 1.20.0
56+
# markdown
57+
- repo: https://github.com/hukkin/mdformat
58+
rev: 1.0.0
5959
hooks:
60-
- id: blacken-docs
60+
- id: mdformat
61+
additional_dependencies:
62+
- mdformat-myst==0.3.0
63+
- mdformat-ruff==0.1.3
64+
- mdformat-web==0.2.0
65+
- mdformat-config==0.2.1
66+
- mdformat-beautysh==1.0.0
67+
- mdformat-gfm-alerts==2.0.0
6168
# C++
6269
- repo: https://github.com/pre-commit/mirrors-clang-format
6370
rev: v21.1.8
6471
hooks:
6572
- id: clang-format
6673
exclude: ^(source/3rdparty|source/lib/src/gpu/cudart/.+\.inc|.+\.ipynb$|.+\.json$)
67-
# markdown, yaml, CSS, javascript
74+
# yaml, CSS, javascript
6875
- repo: https://github.com/pre-commit/mirrors-prettier
6976
rev: v4.0.0-alpha.8
7077
hooks:
7178
- id: prettier
72-
types_or: [markdown, yaml, css]
79+
types_or: [yaml, css]
7380
# workflow files cannot be modified by pre-commit.ci
7481
exclude: ^(source/3rdparty|\.github/workflows|\.clang-format)
7582
# Shell

0 commit comments

Comments
 (0)