From 82eb4f37f191e158df22195087dcec19b508931d Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 5 Jun 2018 22:32:09 +0200 Subject: [PATCH] Added a codestyle CI job to check for PEP8 compliance. --- .gitlab-ci.yml | 9 ++++++++- requirements.txt | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1ca31e..691d723 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,14 @@ test: script: - apt-get update -qy - apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential - - pip3 install wheel - pip3 install -r requirements.txt - python3-coverage run --branch -m unittest discover matemat - python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py' + +codestyle: + script: + - apt-get update -qy + - apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential + - pip3 install -r requirements.txt + - pip3 install pycodestyle + - pycodestyle matemat diff --git a/requirements.txt b/requirements.txt index f2fa21b..4564678 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ +wheel bcrypt apsw