From: Luca Boccassi Date: Sun, 19 Jan 2025 15:58:47 +0000 (+0000) Subject: linter: run ruff format --diff so that the needed changes are actually printed X-Git-Tag: v258-rc1~1546^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe9fb9599e0d6ef70308c36dc4c6dbed0993a5b;p=thirdparty%2Fsystemd.git linter: run ruff format --diff so that the needed changes are actually printed --- diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dde1477d5d9..bd5376dc424 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -57,4 +57,8 @@ jobs: - name: Run ruff format run: | ruff --version - ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + if ! ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + then + echo "Please run 'ruff format' on the above files or apply the diffs below manually" + ruff format --check --quiet --diff src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py + fi