Skip to content

Commit dd111da

Browse files
committed
Replace flake8 with ruff for linting in GitHub workflows
1 parent 37e5797 commit dd111da

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

.github/workflows/test-PyQt5.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,11 @@ 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 qtpy numpy
3939
pip install .
40-
- name: Lint with flake8
41-
run: |
42-
# stop the build if there are Python syntax errors or undefined names
43-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
44-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
45-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+
- name: Lint with Ruff
41+
run: ruff check --output-format=github qwt
4642
- name: Test with pytest
4743
run: |
4844
pytest

.github/workflows/test-PyQt6.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ jobs:
3535
sudo apt install libegl1 libxcb-cursor0
3636
/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
3737
python -m pip install --upgrade pip
38-
python -m pip install flake8 pytest
38+
python -m pip install ruff pytest
3939
pip install PyQt6 qtpy numpy
4040
pip install .
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 qwt
4743
- name: Test with pytest
4844
run: |
4945
pytest

.github/workflows/test-PySide6.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ jobs:
3535
sudo apt install libegl1 libxcb-cursor0
3636
/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
3737
python -m pip install --upgrade pip
38-
python -m pip install flake8 pytest
38+
python -m pip install ruff pytest
3939
pip install PySide6 qtpy numpy
4040
pip install .
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 qwt
4743
- name: Test with pytest
4844
run: |
4945
pytest

0 commit comments

Comments
 (0)