forked from extern/django-helpdesk
Add flake8 exit failure to workflow
This commit is contained in:
parent
72392a3f50
commit
4a429f5498
3
.github/workflows/pythonpackage.yml
vendored
3
.github/workflows/pythonpackage.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user