Merge branch 'testing_black' into 'master'

Adding a lint phase to the ci/cd pipeline. This should fail because animals.py...

See merge request ldooks/dragon-bot!8
This commit is contained in:
Luke 2022-01-31 17:15:44 +00:00
commit 5e1f28b1ca
2 changed files with 9 additions and 0 deletions

View File

@ -9,8 +9,17 @@ variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
stages: stages:
- test
- deploy - deploy
lint_python_on_merge_request:
image: python:alpine
stage: test
script:
- echo "Linting Python code"
- pip install --upgrade -q pip && pip install -q black && black --fast --check .
build_and_push_container: build_and_push_container:
stage: deploy stage: deploy
script: script:

0
app/animals.py Executable file → Normal file
View File