From e503508b5b1b14dd61a1426b798837f873ba772e Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 26 Jun 2020 23:31:15 +0200 Subject: 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 --- .gitlab-ci.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63ed231..5189dd4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 warnings + +pep8: + stage: pep8 + script: + # pep8 warnings - flake8 --max-complexity=10 --max-line-length=120 --show-source + allow_failure: true -- cgit v1.2.3-18-g5258