mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
DRY the ruff check
options
This commit is contained in:
parent
d502dcd01a
commit
46f1d7fc89
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -110,6 +110,8 @@ jobs:
|
|||||||
- name: Check with ruff
|
- name: Check with ruff
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
|
target_version='py310'
|
||||||
|
ignore_csv_list='E701,E722,E731'
|
||||||
cd tubesync
|
cd tubesync
|
||||||
# output formats:
|
# output formats:
|
||||||
# "full" | "concise" | "grouped" |
|
# "full" | "concise" | "grouped" |
|
||||||
@ -130,10 +132,10 @@ jobs:
|
|||||||
echo '```'
|
echo '```'
|
||||||
uvx --no-config --no-managed-python --no-progress --isolated \
|
uvx --no-config --no-managed-python --no-progress --isolated \
|
||||||
ruff check --exit-zero \
|
ruff check --exit-zero \
|
||||||
--target-version py310 \
|
--target-version "${target_version}" \
|
||||||
--output-format "${fmt}" \
|
--output-format "${fmt}" \
|
||||||
--extend-select RUF100 \
|
--extend-select RUF100 \
|
||||||
--ignore E701,E722,E731
|
--ignore "${ignore_csv_list}"
|
||||||
echo ''
|
echo ''
|
||||||
echo '```'
|
echo '```'
|
||||||
echo ''
|
echo ''
|
||||||
@ -143,9 +145,9 @@ jobs:
|
|||||||
} >> "${GITHUB_STEP_SUMMARY}"
|
} >> "${GITHUB_STEP_SUMMARY}"
|
||||||
uvx --no-config --no-managed-python --no-progress --isolated \
|
uvx --no-config --no-managed-python --no-progress --isolated \
|
||||||
ruff check --exit-zero \
|
ruff check --exit-zero \
|
||||||
--target-version py310 \
|
--target-version "${target_version}" \
|
||||||
--output-format github \
|
--output-format github \
|
||||||
--ignore E701,E722,E731
|
--ignore "${ignore_csv_list}"
|
||||||
- name: Run Django tests
|
- name: Run Django tests
|
||||||
run: cd tubesync && python3 -B -W default manage.py test --verbosity=2
|
run: cd tubesync && python3 -B -W default manage.py test --verbosity=2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user