Fix formatting with black

This commit is contained in:
GotthardG
2024-12-16 11:22:22 +01:00
parent fbcfe86b9f
commit 87a69bfdcb

View File

@@ -33,11 +33,11 @@ lint:
- pip install pre-commit black flake8 - pip install pre-commit black flake8
# Run pre-commit hooks # 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..." && echo "Pre-commit formatting failed. Auto-fixing formatting issues with black..." &&
black backend/ && black backend/ &&
exit 1 # If files needed formatting, fail the job. Developer needs to review changes locally. exit 1;
) }
deploy: deploy:
stage: deploy stage: deploy