Loop over output formats

This commit is contained in:
tcely 2025-05-18 04:46:14 -04:00 committed by GitHub
parent 5dfe52452e
commit f182a41a21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,16 +116,26 @@ jobs:
# "json" | "junit" | "github" | "gitlab" |
# "pylint" | "azure"
{
echo '# Output from `ruff check` for `tubesync`'
echo '## Output from `ruff check` for `tubesync`'
echo ''
echo '## pylint format'
echo '### Formats'
for fmt in full concise grouped pylint
do
echo '<details>'
echo '<summary>'"${fmt}"'</summary>'
echo '#### '"${fmt}"' output format'
echo ''
echo '```'
uvx --no-config --no-managed-python --no-progress --isolated \
ruff check --exit-zero \
--target-version py310 \
--output-format pylint \
--output-format "${fmt}" \
--extend-select RUF100 \
--ignore E701,E722,E731
echo '```'
echo '</details>'
echo ''
done
} >> "${GITHUB_STEP_SUMMARY}"
uvx --no-config --no-managed-python --no-progress --isolated \
ruff check --exit-zero \