diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6095786e7666a893cfc2aac4207d91eacf7cd1e4..0d13b0891d7e1343e681a748f457b5d7881f3272 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,12 +31,12 @@ lint:
   script:
     - source $VIRTUAL_ENV/bin/activate
     - pip install pre-commit black flake8
-    # Run pre-commit hooks
-    - pre-commit run --all-files || (
-        echo "Auto-fixing formatting issues with black..." &&
-        black backend/ &&  # Fix formatting locally
-        git diff &&        # Show fixes in pipeline output
-        exit 1             # Fail the job to indicate changes are needed
+    - >
+      pre-commit run --all-files || (
+      echo "Auto-fixing formatting issues with black..." &&
+      black backend/ &&
+      git diff &&
+      exit 1
       )
 
 deploy: