From 712843f0a828ebdddc2c77e2167b01048a1d5fc7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 8 Mar 2023 08:25:58 +0100 Subject: [PATCH] Create ruff_attack_play.txt --- ruff_attack_play.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ruff_attack_play.txt diff --git a/ruff_attack_play.txt b/ruff_attack_play.txt new file mode 100644 index 00000000..15bee888 --- /dev/null +++ b/ruff_attack_play.txt @@ -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 . +```