mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-02-14 22:55:37 +00:00
Switching to ruff linter (#17)
* Migrating to uv build and manager * Updated Flake8 settings * Updating github workflow * Update python-package.yml Removed redundant flake8 run * Twiddle * Version number in banner * Changing to ruff linter * Tweaking workflow * Update python-package.yml * Update __init__.py * Update __init__.py * removing flake8 file * Doc notes * Twiddling with RtD --------- Co-authored-by: Jamie Hardt <jamie@squad51.us>
This commit is contained in:
11
.github/workflows/python-package.yml
vendored
11
.github/workflows/python-package.yml
vendored
@@ -27,14 +27,11 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install flake8 pytest
|
||||
pip install -e .
|
||||
- name: Lint with flake8
|
||||
pip install .
|
||||
pip install --group dev .
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user