From: Jörg Behrmann Date: Tue, 24 Feb 2026 17:03:54 +0000 (+0100) Subject: ci/linter: show diffs for ruff check when possible X-Git-Tag: v261-rc1~126^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b79ff1d052f78a8700f46d247bfe18581a8074;p=thirdparty%2Fsystemd.git ci/linter: show diffs for ruff check when possible --- diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dd89780e76e..048391836eb 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -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