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