Skip to content

Commit 8d95ec5

Browse files
committed
Replace flake8 with ruff (both linting and formatting)
1 parent bc67549 commit 8d95ec5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/python-app.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,12 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install flake8 pytest mypy
30+
pip install mypy ruff pytest
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
- name: Lint with flake8
33-
run: |
34-
# stop the build if there are Python syntax errors or undefined names
35-
# Exclude examples as there is some python2 code there
36-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude examples/
37-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude examples/
32+
- name: Lint with ruff
33+
run: ruff check --output-format=github
34+
- name: Check ruff formatting
35+
run: ruff format --check --diff
3936
- name: Test with pytest
4037
run: pytest
4138
- name: Run mypy

0 commit comments

Comments
 (0)