Skip to content

Commit d1f32b0

Browse files
DarkLight1337hmellor
authored andcommitted
[CI/Build] Only run markdownlint in CI (vllm-project#21892)
Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
1 parent 978ff3f commit d1f32b0

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "markdownlint",
5+
"pattern": [
6+
{
7+
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"code": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
python-version: "3.12"
1919
- run: echo "::add-matcher::.github/workflows/matchers/actionlint.json"
20+
- run: echo "::add-matcher::.github/workflows/matchers/markdownlint.json"
2021
- run: echo "::add-matcher::.github/workflows/matchers/mypy.json"
2122
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
2223
with:

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ repos:
3838
- repo: https://github.com/igorshubovych/markdownlint-cli
3939
rev: v0.45.0
4040
hooks:
41-
- id: markdownlint-fix
41+
- id: markdownlint
4242
exclude: '.*\.inc\.md'
43+
stages: [manual] # Only run in CI
4344
- repo: https://github.com/rhysd/actionlint
4445
rev: v1.7.7
4546
hooks:

0 commit comments

Comments
 (0)