From fc2dd8d8aa77bfeab57ab3bb446d9cdadeb9ad95 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Mon, 3 Apr 2023 20:03:34 +0200 Subject: [PATCH 1/2] Replace flake8, isort, and pyupgrade with ruff --- .github/workflows/lint_python.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index d3841ad2..98dc9624 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -4,14 +4,13 @@ jobs: lint_python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - run: pip install black codespell flake8 isort mypy pytest pyupgrade safety + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - run: pip install --upgrade pip setuptools wheel + - run: pip install black codespell mypy pytest ruff safety + - run: ruff --format=github --ignore=E501,E701,E713,E722,F401,F403,F405,F841 --line-length=263 . - run: black --check . || true - run: codespell --ignore-words-list="datas" --skip="./.git/*" - - run: flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics - - run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --show-source --statistics - - run: isort --check-only --profile black . || true - run: pip install -r requirements.txt - run: mypy --install-types --non-interactive . || true - run: pytest . || true @@ -19,5 +18,4 @@ jobs: - run: python ./loki.py --noprocs --noindicator --dontwait --debug -p ./test - run: python ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test - run: python ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test - - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true - - run: safety check + - run: safety check \ No newline at end of file From 8066d6973998e4da3732765e5cdd9daf85e4edd8 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Mon, 24 Apr 2023 21:44:34 +0200 Subject: [PATCH 2/2] Update lint_python.yml --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 98dc9624..35063e54 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -18,4 +18,4 @@ jobs: - run: python ./loki.py --noprocs --noindicator --dontwait --debug -p ./test - run: python ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test - run: python ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test - - run: safety check \ No newline at end of file + # - run: safety check