forked from extern/django-helpdesk
Add flake8 to workflow
This commit is contained in:
parent
e2a8b974dd
commit
12bb68d5ee
10
.github/workflows/pythonpackage.yml
vendored
10
.github/workflows/pythonpackage.yml
vendored
@ -24,13 +24,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install autopep8
|
pip install autopep8
|
||||||
autopep8 --exit-code --global-config .flake8 helpdesk
|
autopep8 --exit-code --global-config .flake8 helpdesk
|
||||||
# - name: Lint with flake8
|
- name: Lint with flake8
|
||||||
# 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 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
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 --max-line-length=127 --statistics
|
# flake8 . --count --exit-zero --max-complexity=10 --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pip install pytest
|
pip install pytest
|
||||||
|
Loading…
Reference in New Issue
Block a user