Jelajahi Sumber

GitHub workflow: flake8: don't treat error as warnings

Use more strict rules
Dash Eclipse 5 tahun lalu
induk
melakukan
795443af71
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      .github/workflows/python-package.yml

+ 2 - 3
.github/workflows/python-package.yml

@@ -27,6 +27,5 @@ jobs:
     - name: Lint with flake8
       run: |
         # stop the build if there are Python syntax errors or undefined names
-        flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
-        # exit-zero treats all errors as warnings
-        flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics
+        flake8 . --count --ignore=W503 --select=E,F,W,C --show-source --statistics
+        flake8 . --count --max-complexity=10 --max-line-length=79 --statistics