From 0d70d7190faa676d389c24a3f476e3fbf74c18b7 Mon Sep 17 00:00:00 2001
From: Tim Jaacks <tim.jaacks@seco.com>
Date: Thu, 16 Nov 2023 07:47:07 +0100
Subject: [PATCH] Disable sourcery check

Sourcery changed its license model to only be available for open source
projects with the free plan. According to the documentation, sourcery
should detect automatically whether it is running on an open source
repo. This does not work in our case, though. Disable it until we find a
way to correctly make it work.
---
 .gitlab-ci.yml | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0567c9ca..0ab2e38e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,12 +70,16 @@ script_limit:
         --key before_script
         --key after_script
 
-sourcery:
-  extends: .analyze
-  script:
-    - cd scripts
-    - sourcery login --token $SOURCERY_TOKEN
-    - sourcery review --check --verbose *.py
+# FIXME: Find out how to correctly use sourcery with its new open source plan. According
+# to the documentation, the login step should be obsolete. Sourcery complains, however,
+# that our code is closed-source, which is not true.
+# See https://docs.sourcery.ai/Guides/Getting-Started/Command-Line/
+# sourcery:
+#   extends: .analyze
+#   script:
+#     - cd scripts
+#     - sourcery login --token $SOURCERY_TOKEN
+#     - sourcery review --check --verbose *.py
 
 yamllint:
   extends: .analyze
-- 
GitLab