Skip to content

Commit 3a22a3b

Browse files
authored
Update lint-flake8.yml
1 parent 670c8d2 commit 3a22a3b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/lint-flake8.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,12 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Set up Python 3.x
20-
uses: actions/setup-python@v3
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: '3.x'
2323

2424
- name: Display Python version
2525
run: python -c "import sys; print(sys.version)"
2626

27-
- name: Install flake8
28-
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install flake8
31-
3227
- name: Lint with flake8
33-
run: |
34-
# stop the build if there are Python syntax errors or undefined names
35-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28+
uses: py-actions/flake8@v2

0 commit comments

Comments
 (0)