Skip to content

Commit a1a5ab5

Browse files
author
Jinzhe Zeng
committed
chore: add mdformat and prettier for yaml
Sync pre-commit config from deepmd-kit@69eb0c3bb10be0ace823a5240c9fef6d0bb26c08 Changes: - Add mdformat for markdown formatting - Add mdformat plugins: myst, ruff, web, config, beautysh, gfm-alerts - Add prettier for yaml formatting only Authored by OpenClaw (model: glm-5)
1 parent 663d8d6 commit a1a5ab5

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ repos:
2121
- id: check-toml
2222
- id: pretty-format-json
2323
args:
24-
- "--autofix"
25-
- "--no-sort-keys"
26-
- "--indent=4"
24+
- "--autofix"
25+
- "--no-sort-keys"
26+
- "--indent=4"
2727
exclude: "^examples/CH4-lebesgue/.*$"
2828

2929
# Python
@@ -39,5 +39,25 @@ repos:
3939
hooks:
4040
- id: velin
4141
args: ["--write"]
42+
# markdown
43+
- repo: https://github.com/hukkin/mdformat
44+
rev: 1.0.0
45+
hooks:
46+
- id: mdformat
47+
additional_dependencies:
48+
# - mdformat-myst==0.3.0
49+
# See https://github.com/executablebooks/mdformat-myst/issues/13
50+
- "git+https://github.com/njzjz-bothub/mdformat-myst@d9c414e#egg=mdformat-myst"
51+
- mdformat-ruff==0.1.3
52+
- mdformat-web==0.2.0
53+
- mdformat-config==0.2.1
54+
- mdformat-beautysh==1.0.0
55+
- mdformat-gfm-alerts==2.0.0
56+
# yaml
57+
- repo: https://github.com/pre-commit/mirrors-prettier
58+
rev: v4.0.0-alpha.8
59+
hooks:
60+
- id: prettier
61+
types_or: [yaml]
4262
ci:
4363
autoupdate_branch: devel

0 commit comments

Comments
 (0)