From aac80177f56b61ae7f3c5d8396bd2335a005136b Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Sat, 9 Jun 2018 16:00:00 +0200
Subject: [PATCH] See #297: added black formatting check in CI

---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f65e60daa..8e56fa6e16 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
-- 
GitLab