Skip to content

Commit

Permalink
replace flake8 with ruff in gh action (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgtobi authored Oct 19, 2023
1 parent 0e2c3dd commit 73903a4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 73903a4

Please sign in to comment.