Changing to ruff linter

This commit is contained in:
2025-09-20 22:07:33 -07:00
parent 2a69bf47c8
commit 48dd7de07e
5 changed files with 17 additions and 16 deletions

View File

@@ -29,12 +29,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install -e .
- name: Lint with flake8
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/ptulsconv tests --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 src/ptulsconv tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff check src
- name: Test with pytest
run: |
pytest