From 24b79ff1d052f78a8700f46d247bfe18581a8074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Behrmann?= Date: Tue, 24 Feb 2026 18:03:54 +0100 Subject: [PATCH] ci/linter: show diffs for ruff check when possible --- .github/workflows/linter.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dd89780e76..048391836e 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