Skip to content

Commit cbfa33e

Browse files
committed
GHA/build: fix shellcheck SC2046 [ci skip]
1 parent 7d2dad2 commit cbfa33e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,16 @@ jobs:
8585
run: |
8686
source ~/venv/bin/activate
8787
codespell --version
88-
# shellcheck disable=SC2046
88+
git ls-files -z | xargs -0 -r \
8989
codespell --skip='*.asc,*.patch,*.pem' \
90-
--ignore-words '.github/workflows/codespell-ignore.words' \
91-
$(git ls-files)
90+
--ignore-words '.github/workflows/codespell-ignore.words'
9291
9392
- name: 'ruff'
9493
run: |
9594
source ~/venv/bin/activate
9695
ruff --version
97-
# shellcheck disable=SC2046
98-
ruff check --extend-select=B007,B016,C405,C416,COM818,D200,D213,D204,D401,D415,FURB129,N818,PERF401,PERF403,PIE790,PIE808,PLW0127,Q004,RUF010,SIM101,SIM117,SIM118,TRY400,TRY401 \
99-
$(git ls-files '*.py')
96+
git ls-files -z '*.py' | xargs -0 -r \
97+
ruff check --extend-select=B007,B016,C405,C416,COM818,D200,D213,D204,D401,D415,FURB129,N818,PERF401,PERF403,PIE790,PIE808,PLW0127,Q004,RUF010,SIM101,SIM117,SIM118,TRY400,TRY401 --
10098
10199
linux-glibc-debian-testing-llvm:
102100
name: 'linux-glibc-debian-testing-llvm'

0 commit comments

Comments
 (0)