Add flake8 to workflow

This commit is contained in:
Martin Whitehouse 2022-07-22 01:23:50 +02:00
parent e2a8b974dd
commit 12bb68d5ee
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -24,13 +24,13 @@ jobs:
run: |
pip install autopep8
autopep8 --exit-code --global-config .flake8 helpdesk
# - name: Lint with flake8
# run: |
# pip install flake8
- name: Lint with flake8
run: |
pip install flake8
# 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
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Test with pytest
run: |
pip install pytest