Skip to content

Commit

Permalink
fix: update ruff check workflow
Browse files Browse the repository at this point in the history
- Separate incompatible ruff check options into multiple commands
- Add proper error handling with exit codes
- Run checks in sequence: statistics, detailed files, GitHub format
  • Loading branch information
okdshin committed Jan 7, 2025
1 parent 9d6535e commit 05a9578
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ jobs:
- name: Run ruff check
run: |
# Run with detailed output for better error understanding
ruff check . --show-files --show-fixes --statistics
# Run with statistics first
ruff check . --statistics || exit 1
# Run again with GitHub format if the first check passes
# Then show detailed file information
ruff check . --show-files --show-fixes || exit 1
# Finally run with GitHub format
ruff check . --output-format=github

0 comments on commit 05a9578

Please sign in to comment.