Fix formatting with black
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user