Skip to content

Commit

Permalink
quote python version numbers.
Browse files Browse the repository at this point in the history
move to ruff as linter
  • Loading branch information
hendriks73 committed Oct 11, 2024
1 parent d864919 commit fe23e3e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ jobs:
sudo apt-get install libsndfile1
sudo apt-get install ffmpeg
python -m pip install --upgrade pip setuptools wheel
pip install flake8 pytest
pip install ruff pytest
pip install .[testing]
- name: Lint with flake8
- 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 tempocnn test
ruff format --check tempocnn test
- name: Test with pytest
run: |
coverage run --source ./tempocnn -m pytest --verbose --junitxml=pytest_report${{ matrix.python-version }}.xml
Expand Down

0 comments on commit fe23e3e

Please sign in to comment.