-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ruff_attack_play.txt
28 lines (28 loc) · 950 Bytes
/
ruff_attack_play.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 .
```