Skip to content

Commit

Permalink
CI(ruff): Show ruff annotations even for fixes (OSGeo#4111)
Browse files Browse the repository at this point in the history
* CI(ruff): Show ruff annotations even for fixes

* CI(ruff): Use default output format when fixing
  • Loading branch information
echoix authored Jul 30, 2024
1 parent e56c7cd commit 75a4c53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ jobs:

- name: Install Ruff
run: pip install ruff==${{ env.RUFF_VERSION }}
- name: Run Ruff
run: ruff check --output-format=github . --preview --fix --unsafe-fixes
- name: Run Ruff (output annotations on fixable errors)
run: ruff check --output-format=github . --preview --unsafe-fixes
continue-on-error: true
- name: Run Ruff (apply fixes for suggestions)
run: ruff check . --preview --fix --unsafe-fixes
- name: Create and uploads code suggestions to apply for Ruff
# Will fail fast here if there are changes required
id: diff-ruff
Expand Down

0 comments on commit 75a4c53

Please sign in to comment.