aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-06-27 00:56:38 +0200
committernico <nico@magicbroccoli.de>2020-06-27 00:56:38 +0200
commitfa87c166ed68fac05970ae60eda532d6ba5a851a (patch)
tree1d27bf6bba2c9165da83ea244da1be5817ab2058
parent565702d91f67b0b94c327574aa89564a40b95a37 (diff)
finalizing the ci pipelines
- revert 565702d9 as it did not behave like it should have + add black pipeline for code consistency
-rw-r--r--.gitlab-ci.yml19
1 files changed, 10 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87a0c5a..c39fb0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,22 +6,17 @@ variables:
cache:
paths:
- # utilize pip caching
- - .cache/pip
- # cache the virtual environment
- - venv/
+ - .cache/pip # pip caching directory
# setup environemnt
before_script:
- python --version
- - pip install virtualenv
- - virtualenv venv
- - source venv/bin/activate
- pip install -r requirements.txt
- - pip install flake8
+ - pip install flake8 black
stages:
- syntax
+ - black
- pep8
syntax:
@@ -30,9 +25,15 @@ syntax:
# breaking errors ie syntax errors
- flake8 --select=E9,F63,F7,F82 --show-source
+black:
+ stage: black
+ script:
+ # code consistency
+ - black . --check --line-length 120
+
pep8:
stage: pep8
script:
- # pep8 warnings
+ # pep8 warnings and other non breaking warnings
- flake8 --max-complexity=10 --max-line-length=120 --show-source
allow_failure: true