From f182a41a219cbb80dd3b6be15f33d8c8f1b03698 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 18 May 2025 04:46:14 -0400 Subject: [PATCH] Loop over output formats --- .github/workflows/ci.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a1754c10..05debc82 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 '
' + echo ''"${fmt}"'' + 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 '
' + echo '' + done } >> "${GITHUB_STEP_SUMMARY}" uvx --no-config --no-managed-python --no-progress --isolated \ ruff check --exit-zero \