Skip to content

Commit

Permalink
Update itinerant_ruff_fixes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 29, 2024
1 parent ac84d7e commit 9cc0068
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/itinerant_ruff_fixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,33 @@ jobs:
repository: ${{ github.event.inputs.repo }}
- run: ls -Fla
- run: codespell || true
# ruff --exit-zero runs first...
# ruff check --exit-zero runs first...
# exit-zero on select=ALL
- run: ruff --exit-zero --select=ALL --target-version=py38
- run: ruff --exit-zero --select=ALL --statistics --target-version=py38 | sort -k 2
- run: ruff check --exit-zero --select=ALL --target-version=py38
- run: ruff check --exit-zero --select=ALL --statistics --target-version=py38 | sort -k 2
# exit-zero on select=ALL that are fixable
- run: ruff --exit-zero --select=ALL --statistics --target-version=py38 | grep "\[\*\]" | sort -k 2 || true
- run: ruff check --exit-zero --select=ALL --statistics --target-version=py38 | grep "\[\*\]" | sort -k 2 || true
# exit-zero default issues
- run: ruff --exit-zero --statistics --target-version=py38 | sort -k 2
- run: ruff check --exit-zero --statistics --target-version=py38 | sort -k 2
# - run: cp /tmp/ruff_generate_baseline.py
# - run: python3 ruff_generate_baseline.py
# - run: python3 /tmp/ruff_generate_baseline.py
- run: ruff --exit-zero --exclude="*/migrations/*,test/*,tests/*" --quiet --select=ALL --target-version=py38 | /tmp/ruff_config_gen.py
- run: ruff --exit-zero --quiet --select=ALL --target-version=py38 | /tmp/ruff_config_gen.py
# - run: ruff --exit-zero --select=E501 | tee long_lines.txt
- run: ruff check --exit-zero --exclude="*/migrations/*,test/*,tests/*" --quiet --select=ALL --target-version=py38 | /tmp/ruff_config_gen.py
- run: ruff check --exit-zero --quiet --select=ALL --target-version=py38 | /tmp/ruff_config_gen.py
# - run: ruff check --exit-zero --select=E501 | tee long_lines.txt

# Just the showstopper issues without undefined names
- run: ruff --output-format=github --select=E9,F63,F7 --target-version=py38
- run: ruff check --output-format=github --select=E9,F63,F7 --target-version=py38
# Just the showstopper issues
- run: ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py38
- run: ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py38
# The default issues
- run: ruff --output-format=github --target-version=py38
- run: ruff check --output-format=github --target-version=py38
- run: |
ruff check --select=ALL --statistics --target-version=py38 | tee ruff.out.txt || true
echo "-------"
grep "\[\*\]" ruff.out.txt
ruff check --select=E501 > ruff_long_lines.txt || true
- name: ruff --line-length=88 check --select=ALL --target-version=py38 --ignore=???
- name: ruff check --line-length=88 check --select=ALL --target-version=py38 --ignore=???
shell: python
run: |
with open("ruff.out.txt") as in_file:
Expand All @@ -87,6 +87,6 @@ jobs:
- run: ruff check --ignore=ANN,C4,COM,D,ERA,F841,I,PIE790,PT,Q,RSE102,RUF001,RUF003,RUF100,TID252,UP
--select=ALL --statistics --target-version=py38 | grep "\[\*\]" || true
- run: |
ruff --select=SIM --fix . | true
ruff check --select=SIM --fix . | true
git diff

0 comments on commit 9cc0068

Please sign in to comment.