diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f65e60daa665d061cc7589f91ee3ab2755f056c..8e56fa6e1624ed2ae7c3de714d093dc2a2c411f6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,10 +6,20 @@ variables:
 
 
 stages:
+  - lint
   - test
   - build
   - deploy
 
+black:
+  image: python:3.6
+  stage: lint
+  before_script:
+    - pip install black
+  script:
+    - black --check api/
+
+
 test_api:
   services:
     - postgres:9.4