Skip to content

Commit dcbcf35

Browse files
russellbcharlifu
authored andcommitted
[CI/Build] Add error matching for ruff output (vllm-project#9513)
Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: charlifu <charlifu@amd.com>
1 parent 28420ad commit dcbcf35

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/matchers/ruff.json

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

.github/workflows/ruff.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
pip install -r requirements-lint.txt
2929
- name: Analysing the code with ruff
3030
run: |
31-
ruff check .
31+
echo "::add-matcher::.github/workflows/matchers/ruff.json"
32+
ruff check --output-format github .
3233
- name: Spelling check with codespell
3334
run: |
3435
codespell --toml pyproject.toml

0 commit comments

Comments
 (0)