Fix formatting with black

This commit is contained in:
GotthardG 2024-12-16 10:42:35 +01:00
parent a0be71bdfe
commit 533f24a1d6

View File

@ -30,8 +30,8 @@ lint:
stage: test
script:
- source $VIRTUAL_ENV/bin/activate
- pip install pre-commit # Install pre-commit in the CI environment
- pre-commit run --all-files # Run all pre-commit hooks on the entire codebase
- pip install pre-commit
- pre-commit run --all-files || (echo "Auto-fixing formatting issues" && black backend/ && git diff && exit 1)
deploy:
stage: deploy