]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CI: run ruff format before ruff check
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 12 Aug 2025 22:40:11 +0000 (23:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 10:10:48 +0000 (12:10 +0200)
Otherwise you get a failure but no hint on how to fix it

(cherry picked from commit e1311b10f808bd3a9897cd744e0823bbe1e65fc7)

.github/workflows/linter.yml

index a4f2e676a869964fcb1cd4db630c8ca2d68063fb..ea75128197aba9bbe4ee0e2c1f3920fded88d88e 100644 (file)
@@ -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