split up flake jobs

* split flake8 jobs into two seperate jobs to better control the result
+ add allow_failure: true to the pep8 job to not discourage anybody from commiting code
This commit is contained in:
nico 2020-06-26 23:31:15 +02:00
parent 2f730bf186
commit e503508b5b
Signed by: mightyBroccoli
GPG Key ID: EA7C31AAB1BDC1A2
1 changed files with 11 additions and 5 deletions

View File

@ -7,12 +7,18 @@ before_script:
- pip install flake8
stages:
- check
- syntax
- pep8
flake8:
stage: check
syntax:
stage: syntax
script:
# breaking errors and syntax errors
# breaking errors ie syntax errors
- flake8 --select=E9,F63,F7,F82 --show-source
pep8:
stage: pep8
script:
# pep8 warnings
- flake8 --max-complexity=10 --max-line-length=120 --show-source
allow_failure: true