]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci/linter: run ruff for all python scripts
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Feb 2026 19:19:19 +0000 (04:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:51:41 +0000 (02:51 +0900)
.github/workflows/linter.yml
ruff.toml

index 5e9b83b08edececde5e26953001b8300b4545eff..dd89780e76e48de7192eecbca14e6879cfadbc82 100644 (file)
@@ -63,16 +63,16 @@ jobs:
       - name: Run ruff format
         run: |
           mkosi box -- ruff --version
-          if ! mkosi box -- ruff format --check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
+          if ! mkosi box -- ruff format --check
           then
               echo "Please run 'ruff format' on the above files or apply the diffs below manually"
-              mkosi box -- ruff format --check --quiet --diff src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
+              mkosi box -- ruff format --check --quiet --diff
           fi
 
       - name: Run ruff check
         run: |
           mkosi box -- ruff --version
-          mkosi box -- ruff check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
+          mkosi box -- ruff check
 
       - name: Configure meson
         run: mkosi box -- env CC=clang CXX=clang++ meson setup build
index 35a4f5dc4312e18a3f28234049c44a17fcb5d9dc..c88204d650c24ff0e96b4b5ffaeebe8688119183 100644 (file)
--- a/ruff.toml
+++ b/ruff.toml
@@ -1,6 +1,9 @@
 target-version = "py39"
 line-length = 109
 
+# This file is imported from an external project.
+extend-exclude = ["tools/chromiumos/gen_autosuspend_rules.py"]
+
 [lint]
 select = ["E", "F", "I", "Q", "UP"]
 # E501: line-too-long