Fix formatting with black
This commit is contained in:
@ -31,12 +31,12 @@ 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 "Auto-fixing formatting issues with black..." &&
|
echo "Auto-fixing formatting issues with black..." &&
|
||||||
black backend/ && # Fix formatting locally
|
black backend/ &&
|
||||||
git diff && # Show fixes in pipeline output
|
git diff &&
|
||||||
exit 1 # Fail the job to indicate changes are needed
|
exit 1
|
||||||
)
|
)
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
Reference in New Issue
Block a user