ci: markdownlint: Add markdownlint to the pre-commit check

This commit is contained in:
Kate Hsuan 2025-01-07 14:07:18 +08:00
parent 2cfc6f625f
commit 9c3b678d7f
2 changed files with 15 additions and 0 deletions

10
.markdownlint.json Normal file
View file

@ -0,0 +1,10 @@
{
"default": true,
"MD033": false,
"MD041": false,
"MD036": false,
"MD013": {
"tables": false,
"line_length": 1000
}
}

View file

@ -29,3 +29,8 @@ repos:
hooks:
- id: codespell
args: ['--config', './contrib/codespell.cfg', --write-changes]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
args: ['--fix', '--ignore', '.github']