flake8 gitlab ajustments

* ajust ci config for gitlabs ci
* reduced max line length to 120

It seems gitlab prefers it that way

+ add some comments
This commit is contained in:
nico 2020-06-26 23:05:21 +02:00
parent 78de6199ce
commit 2f730bf186
Signed by: mightyBroccoli
GPG Key ID: EA7C31AAB1BDC1A2
1 changed files with 6 additions and 4 deletions

View File

@ -7,10 +7,12 @@ before_script:
- pip install flake8
stages:
- Static Analysis
- check
flake8:
stage: Static Analysis
stage: check
script:
- flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# breaking errors and syntax errors
- flake8 --select=E9,F63,F7,F82 --show-source
# pep8 warnings
- flake8 --max-complexity=10 --max-line-length=120 --show-source