Skip to content

Commit 86bf3bc

Browse files
committed
ci/linter: run ruff for all python scripts
1 parent d5a1273 commit 86bf3bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/linter.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ jobs:
6363
- name: Run ruff format
6464
run: |
6565
mkosi box -- ruff --version
66-
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
66+
# shellcheck disable=SC2046
67+
if ! mkosi box -- ruff format --check $(git ls-files -- *.py | sed -e '/gen_autosuspend_rules/d')
6768
then
6869
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
69-
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
70+
# shellcheck disable=SC2046
71+
mkosi box -- ruff format --check --quiet --diff $(git ls-files -- *.py | sed -e '/gen_autosuspend_rules/d')
7072
fi
7173
7274
- name: Run ruff check
7375
run: |
7476
mkosi box -- ruff --version
75-
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
77+
# shellcheck disable=SC2046
78+
mkosi box -- ruff check $(git ls-files -- *.py | sed -e '/gen_autosuspend_rules/d')
7679
7780
- name: Configure meson
7881
run: mkosi box -- env CC=clang CXX=clang++ meson setup build

0 commit comments

Comments
 (0)