Skip to content

Commit 54af854

Browse files
committed
[CI/Build] Tell ruff to generate github formatted errors
`ruff` has built-in support for generating errors in a format that GitHub understands so that errors will be shown in the diff viewer. This makes it easy to see errors inline with the code and without having to open CI logs. Signed-off-by: Russell Bryant <rbryant@redhat.com>
1 parent b8299ff commit 54af854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ruff.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Analysing the code with ruff
3030
run: |
3131
echo "::add-matcher::.github/workflows/matchers/ruff.json"
32-
ruff check .
32+
ruff check --output-format github .
3333
- name: Spelling check with codespell
3434
run: |
3535
codespell --toml pyproject.toml

0 commit comments

Comments
 (0)