From a8e51d3361eb62f3e704a7c934fbce71ff353f11 Mon Sep 17 00:00:00 2001 From: janmax <mail-github@jmx.io> Date: Thu, 9 Nov 2017 17:02:56 +0100 Subject: [PATCH] Added a prospector CI job --- .gitlab-ci.yml | 6 ++++++ backend/core/models.py | 2 +- backend/requirements.txt | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d323ad32..8fb02b54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,12 @@ test_pylint: - cd backend/ - pylint core || exit 0 +test_prospector: + <<: *test_definition + script: + - cd backend/ + - prospector --uses django || exit 0 + .staging_template: &staging_definition stage: staging diff --git a/backend/core/models.py b/backend/core/models.py index ef57604c..01218655 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -173,7 +173,7 @@ class UserAccountManager(BaseUserManager): account.is_superuser = True account.save() - return account + return account class UserAccount(AbstractBaseUser): diff --git a/backend/requirements.txt b/backend/requirements.txt index a6f7f9bd..d035c1ef 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -7,5 +7,5 @@ gunicorn~=19.7.0 psycopg2~=2.7.1 xlrd~=1.0.0 pytest-cov~=2.5.1 -pylint~=1.7.4 +prospector~=0.12.7 django-cors-headers~=2.1.0 -- GitLab