From 73903a4d1b843bb356c9d3ed0520956fb586fbe1 Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Thu, 19 Oct 2023 12:41:08 +0200 Subject: [PATCH] replace flake8 with ruff in gh action (#459) --- .github/workflows/pythonpackage.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 8cd9a074..c28b5721 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -16,7 +16,7 @@ jobs: strategy: max-parallel: 1 matrix: - python-version: [3.10.8] + python-version: [3.11.4] steps: - uses: actions/checkout@v4 @@ -39,7 +39,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.10.8] + python-version: [3.11.4] steps: - uses: actions/checkout@v4 @@ -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 check src/pyatmo build: runs-on: ubuntu-latest