From 9f31bef8ac79b4c72230a4026a54aed65174f5f4 Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Thu, 19 Oct 2023 12:29:57 +0200 Subject: [PATCH] replace flake8 with ruff in gh action --- .github/workflows/pythonpackage.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 8cd9a074..f33f803a 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -50,13 +50,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 - - name: Lint with flake8 + pip install ruff + - name: Lint with ruff run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + ruff build: runs-on: ubuntu-latest