From 8d5dea5e35329135410a2892bf5a8b4d51c2a1ff Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Fri, 13 Dec 2019 00:34:05 +0100
Subject: [PATCH] [CI] Run black formatter in diff mode before flake8

---
 .gitlab-ci.yml | 2 +-
 tox.ini        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5318c9d9f..91e29bf95 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,7 +31,7 @@ test:
 lint:
   stage: test
   script:
-    - tox -e lint,security
+    - tox -e black,lint,security
   allow_failure: true
 
 build_dist:
diff --git a/tox.ini b/tox.ini
index 4424ba0b3..0360454dc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -33,8 +33,8 @@ commands = poetry build
 [testenv:docs]
 commands = poetry run make -C docs/ html {posargs}
 
-[testenv:autoformat]
-commands = poetry run black {posargs} biscuit/core/
+[testenv:black]
+commands = poetry run black --check --diff biscuit/core/
 
 [flake8]
 max_line_length = 100
-- 
GitLab