From: Yu Watanabe Date: Thu, 19 Feb 2026 19:19:19 +0000 (+0900) Subject: ci/linter: run ruff for all python scripts X-Git-Tag: v261-rc1~126^2~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e184315aeec9494bc1e2fbcf5c6e9bf2fe2e823e;p=thirdparty%2Fsystemd.git ci/linter: run ruff for all python scripts --- diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5e9b83b08ed..dd89780e76e 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -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 diff --git a/ruff.toml b/ruff.toml index 35a4f5dc431..c88204d650c 100644 --- 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