ci/linter: show diffs for ruff check when possible

This commit is contained in:
Jörg Behrmann
2026-05-18 02:51:41 +09:00
committed by Yu Watanabe
parent e184315aee
commit 24b79ff1d0
+6 -1
View File
@@ -72,7 +72,12 @@ jobs:
- name: Run ruff check
run: |
mkosi box -- ruff --version
mkosi box -- ruff check
if ! mkosi box -- ruff check
then
echo "Please fix the errors shown by 'ruff check' on the above files or add noqa comments where appropriate."
echo "Diffs for fixes that can be programmatically generated are shown below:"
mkosi box -- ruff check --diff
fi
- name: Configure meson
run: mkosi box -- env CC=clang CXX=clang++ meson setup build