Tighten up flake8 tests used by lint_python GitHub Action

This commit is contained in:
Christian Clauss 2021-10-04 11:08:21 +02:00
parent c33ab997c9
commit 52dbccea5e
2 changed files with 8 additions and 6 deletions

View File

@ -1,2 +1,8 @@
[flake8]
ignore = E501, W191, E741, E266
count = True
# Several of the following could be autofixed or improved by running the code through psf/black
ignore = E126,E128,E203,E226,E231,E261,E265,E301,E302,E303,E402,E722,F401,F403,F405,F541,F841,W191,W293
max-complexity = 39
max-line-length = 236
show-source = True
statistics = True

View File

@ -20,11 +20,7 @@ jobs:
- run: python -m pip install --upgrade pip
- run: pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors
flake8 . --count --select=E9,F63,F7 --show-source --statistics
# 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
run: flake8 # See the .flake8 file for runtime parameters
pytest:
runs-on: ubuntu-latest
container: