Skip to content

Commit 927b4bf

Browse files
cclausswang0618
authored andcommitted
Lint on Python 3.10 and add more flake8 tests
1 parent da1bdd3 commit 927b4bf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.5, 3.6, 3.7, 3.8]
12+
python-version: ["3.5", "3.6", "3.7", "3.8", "3.10"]
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -18,7 +18,7 @@ jobs:
1818
ignore_words_list: datas
1919
skip: "*.js,*.po"
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
21+
uses: actions/setup-python@v2
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
@@ -28,7 +28,5 @@ jobs:
2828
- name: Lint with flake8
2929
run: |
3030
pip install flake8
31-
# stop the build if there are Python syntax errors or undefined names
32-
flake8 pywebio --count --select=E9,F63,F7,F82 --show-source --statistics
33-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34-
flake8 pywebio --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
flake8 --ignore=E126,E127,E128,E131,E226,E231,E302,E303,E305,E402,E701,E731,F401,F403,F405,W291,W292,W293,W391
32+
--max-complexity=32 --max-line-length=525 --show-source --statistics .

0 commit comments

Comments
 (0)