From 8b26b1eb8e5cd8d69e600a4c4eec9bea28ef8059 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 27 Jun 2020 12:07:09 +0200 Subject: tool configuration * seperate tool config and tool call * rename black stage to code consistency for a greater readability - remove allow_failure from the third stage I did decide to remove the allowed failure tag to encourage a higher code quality. --- .gitlab-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c39fb0b..5f1e754 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,24 +16,23 @@ before_script: stages: - syntax - - black - - pep8 + - code consistency + - flake8 syntax: stage: syntax script: - # breaking errors ie syntax errors + # flake8 check only breaking errors ie syntax errors - flake8 --select=E9,F63,F7,F82 --show-source black: - stage: black + stage: code consistency script: # code consistency - - black . --check --line-length 120 + - black . --check pep8: - stage: pep8 + stage: flake8 script: - # pep8 warnings and other non breaking warnings - - flake8 --max-complexity=10 --max-line-length=120 --show-source - allow_failure: true + # full flake8 test + - flake8 --show-source -- cgit v1.2.3-18-g5258