From 87a69bfdcb29e7a26926231c12167406890dddcf Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:22:22 +0100 Subject: [PATCH] Fix formatting with black --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e5985fa..b68897c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,11 +33,11 @@ lint: - pip install pre-commit black flake8 # Run pre-commit hooks - > - pre-commit run --all-files || ( + pre-commit run --all-files || { echo "Pre-commit formatting failed. Auto-fixing formatting issues with black..." && black backend/ && - exit 1 # If files needed formatting, fail the job. Developer needs to review changes locally. - ) + exit 1; + } deploy: stage: deploy