Fix formatting with black

This commit is contained in:
GotthardG 2024-12-16 11:24:11 +01:00
parent 87a69bfdcb
commit 6ae15dece9

View File

@ -31,12 +31,11 @@ lint:
script: script:
- source $VIRTUAL_ENV/bin/activate - source $VIRTUAL_ENV/bin/activate
- pip install pre-commit black flake8 - 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..." && echo "Pre-commit formatting failed. Auto-fixing formatting issues with black..." &&
black backend/ && black backend/ &&
exit 1; exit 0; # Continue after auto-fixing issues
} }
deploy: deploy: