Skip to content

Commit

Permalink
Fix: Remove ruff from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Sep 12, 2023
1 parent 2394484 commit 9cfcbd3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,18 +28,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install ruff
pip install -r requirements.txt
- name: Run tests with pytest
run: |
pytest -m "not apitest"
- name: Run lintering 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 src --fix # make ruff run for src folder files and --fix to fix automatically linting errors
ruff tests --fix

0 comments on commit 9cfcbd3

Please sign in to comment.