mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
linter: run ruff format --diff so that the needed changes are actually printed
This commit is contained in:
6
.github/workflows/linter.yml
vendored
6
.github/workflows/linter.yml
vendored
@@ -57,4 +57,8 @@ jobs:
|
||||
- name: Run ruff format
|
||||
run: |
|
||||
ruff --version
|
||||
ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py
|
||||
if ! ruff format --check src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py
|
||||
then
|
||||
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
|
||||
ruff format --check --quiet --diff src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-test-wrapper.py
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user