Skip to content

Commit

Permalink
Create ruff_attack_play.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 8, 2023
1 parent 62127f7 commit 712843f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ruff_attack_play.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
```yaml
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: ruff
on:
push:
# branches:
# - master
pull_request:
branches:
- master
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
# Just the showstopper issues
- run: ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
# exit-zero on select=ALL
- run: ruff --exit-zero --select=ALL --statistics --target-version=py37 .
# exit-zero on select=ALL that are fixable
- run: ruff --exit-zero --select=ALL --statistics --target-version=py37 . | grep "\[\*\]" || true
# exit-zero default issues
- run: ruff --exit-zero --statistics --target-version=py37 .
# The default issues
- run: ruff --ignore=E402,E501,E701,E722,E731,E741,F401,F403,F405,F811,F841
--format=github --target-version=py37 .
```

0 comments on commit 712843f

Please sign in to comment.