diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3254d6c..4666106 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -23,7 +23,10 @@ jobs: - name: Static analysis run: | pip install flake8 - flake8 --max-line-length=150 --ignore=E266 *.py project/*.py project/*/routes.py + # stop the build if there are Python syntax errors or undefined names + flake8 --count --select=E9,F63,F7,F82 --show-source --statistics *.py project/*.py project/*/routes.py + # exit-zero treats all errors as warnings. + flake8 --count --exit-zero --max-complexity=10 --max-line-length=150 --statistics --ignore=E266 *.py project/*.py project/*/routes.py - name: Test with pytest run: | pip install pytest