From: Luca Boccassi Date: Tue, 12 Aug 2025 22:40:11 +0000 (+0100) Subject: CI: run ruff format before ruff check X-Git-Tag: v257.9~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b111584b27a18f73b35a100bf1a29cebb4428f8e;p=thirdparty%2Fsystemd.git CI: run ruff format before ruff check Otherwise you get a failure but no hint on how to fix it (cherry picked from commit e1311b10f808bd3a9897cd744e0823bbe1e65fc7) --- diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a4f2e676a86..ea75128197a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -56,11 +56,6 @@ jobs: mkosi sandbox -- mypy --version mkosi sandbox -- mypy src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py - - name: Run ruff check - run: | - mkosi sandbox -- ruff --version - mkosi sandbox -- ruff check src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py - - name: Run ruff format run: | mkosi sandbox -- ruff --version @@ -69,3 +64,8 @@ jobs: echo "Please run 'ruff format' on the above files or apply the diffs below manually" mkosi sandbox -- ruff format --check --quiet --diff src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py fi + + - name: Run ruff check + run: | + mkosi sandbox -- ruff --version + mkosi sandbox -- ruff check src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py