Add flake8 exit failure to workflow

This commit is contained in:
Martin Whitehouse 2022-07-25 04:47:59 +02:00
parent 72392a3f50
commit 4a429f5498
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -28,9 +28,8 @@ jobs:
run: | run: |
pip install flake8 pip install flake8
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
flake8 helpdesk --count --show-source --statistics --exit-zero
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --statistics flake8 helpdesk --count --show-source --statistics --exit-zero --max-complexity=20
- name: Sort style check with 'isort' - name: Sort style check with 'isort'
run: | run: |
isort --line-length=120 --src helpdesk . --check isort --line-length=120 --src helpdesk . --check