Browse Source

Lint on Python 3.10 and add more flake8 tests

Christian Clauss 3 years ago
parent
commit
927b4bf870
1 changed files with 4 additions and 6 deletions
  1. 4 6
      .github/workflows/lint.yml

+ 4 - 6
.github/workflows/lint.yml

@@ -9,7 +9,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.5, 3.6, 3.7, 3.8]
+        python-version: ["3.5", "3.6", "3.7", "3.8", "3.10"]
 
     steps:
       - uses: actions/checkout@v2
@@ -18,7 +18,7 @@ jobs:
           ignore_words_list: datas
           skip: "*.js,*.po"
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v1
+        uses: actions/setup-python@v2
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies
@@ -28,7 +28,5 @@ jobs:
       - name: Lint with flake8
         run: |
           pip install flake8
-          # stop the build if there are Python syntax errors or undefined names
-          flake8 pywebio --count --select=E9,F63,F7,F82 --show-source --statistics
-          # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
-          flake8 pywebio --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
+          flake8 --ignore=E126,E127,E128,E131,E226,E231,E302,E303,E305,E402,E701,E731,F401,F403,F405,W291,W292,W293,W391
+                 --max-complexity=32 --max-line-length=525 --show-source --statistics .