See #297: added black formatting check in CI

This commit is contained in:
Eliot Berriot 2018-06-09 16:00:00 +02:00
parent e953468e69
commit aac80177f5
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 10 additions and 0 deletions

View File

@ -6,10 +6,20 @@ variables:
stages: stages:
- lint
- test - test
- build - build
- deploy - deploy
black:
image: python:3.6
stage: lint
before_script:
- pip install black
script:
- black --check api/
test_api: test_api:
services: services:
- postgres:9.4 - postgres:9.4