Fix formatting with black
This commit is contained in:
parent
fbcfe86b9f
commit
87a69bfdcb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user