diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d323ad32eb7ee7ed5a2099aa039ec659274a0e86..8fb02b54899d0a570bca8622b67179bed8073272 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 ef57604ca609f04b0aa95eee3297e4f39c875afe..01218655b51f2038ba486d39aeac3ff74614ade8 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 a6f7f9bd66342e2ef152350adf28a59ea9d4ae2a..d035c1effbd4e161ec2d139f5398ae54073ebee1 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