Skip to content

Commit af587e1

Browse files
committed
Do not install flake8 manually
1 parent beb0d11 commit af587e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build-and-test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
uv run python -m pip install --upgrade pip
28-
uv run python -m pip install flake8
2927
uv sync
3028
- name: Lint with flake8
3129
run: |
3230
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31+
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3432
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33+
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3634
- name: Test with unittest
3735
run: uv run python -m unittest discover test

0 commit comments

Comments
 (0)