From 5908bdd114734ca993392a9d2549d702106ddf2e Mon Sep 17 00:00:00 2001
From: Mart van Santen <mart@greenhost.nl>
Date: Mon, 6 Dec 2021 08:40:56 +0100
Subject: [PATCH] Make darker not fail on formatting recommandations

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f6a0cba..f9a94ce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -228,4 +228,6 @@ pylint-lint:
     PYLINT_PLUGINS: "pylint_flask pylint_flask_sqlalchemy"
   image: ${CI_REGISTRY_IMAGE}/pylint:${CI_COMMIT_REF_NAME}
   script:
-    - darker --check -i -L pylint --diff --revision remotes/origin/main .
+    # Run darker with --diff command. This will throw exit code 1 if there are
+    # lint errors, but a 0 if there are only formatting recommendations
+    - darker -i -L pylint --diff --revision remotes/origin/main .
-- 
GitLab