Skip to content

Commit de73b00

Browse files
committed
Replace flake8 with Ruff for linting in GitHub Actions workflow
1 parent d4404fe commit de73b00

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/test_pyqt5.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@ jobs:
3434
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
3535
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
3636
python -m pip install --upgrade pip
37-
python -m pip install flake8 pytest
37+
python -m pip install ruff pytest
3838
pip install PyQt5 setuptools numpy Cython
3939
python setup.py build_ext --inplace
4040
pip install .[test]
41-
- name: Lint with flake8
42-
run: |
43-
# stop the build if there are Python syntax errors or undefined names
44-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
45-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
46-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41+
- name: Lint with Ruff
42+
run: ruff check --output-format=github plotpy
4743
- name: Test with pytest
4844
run: |
4945
pytest

0 commit comments

Comments
 (0)