Skip to content

Commit

Permalink
Run ruff linter in the Python package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos committed Mar 18, 2023
1 parent ff04564 commit c436254
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install flake8 pytest
python -m pip install flake8 pytest ruff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/gassist_text tests demo.py browser_helpers.py --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src/gassist_text tests demo.py browser_helpers.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --show-source --statistics
- name: Lint with ruff
run: |
ruff .
- name: Test with pytest
run: |
pytest

0 comments on commit c436254

Please sign in to comment.