Fix formatting with black
This commit is contained in:
parent
a0be71bdfe
commit
533f24a1d6
@ -30,8 +30,8 @@ lint:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- source $VIRTUAL_ENV/bin/activate
|
- source $VIRTUAL_ENV/bin/activate
|
||||||
- pip install pre-commit # Install pre-commit in the CI environment
|
- pip install pre-commit
|
||||||
- pre-commit run --all-files # Run all pre-commit hooks on the entire codebase
|
- pre-commit run --all-files || (echo "Auto-fixing formatting issues" && black backend/ && git diff && exit 1)
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user