Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 9a13ef41 authored by Dorian Turba's avatar Dorian Turba
Browse files

update black to work with optional dep

parent fb8d54f9
No related branches found
No related tags found
No related merge requests found
Pipeline #22067 passed
......@@ -32,7 +32,6 @@ black:
stage: templates
variables:
PROJECT_PATH: "tests/black_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH} black"
only:
changes:
- .gitlab-ci.yml
......
......@@ -2,14 +2,11 @@ black:
image: python:${IMAGE_TAG}
stage: code_quality
variables:
IMAGE_TAG: "latest"
IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG]
PROJECT_PATH: "."
PYTHON_SETUP: "pip install ${PROJECT_PATH}[CODE_QUALITY]"
PYTHON_SETUP: "pip install ${PROJECT_PATH}[QUALITY]"
script:
- python --version # Debug
- python -m venv venv --upgrade-deps || python -m venv venv # upgrade-deps is not supported before 3.9
- source venv/bin/activate
- ${PYTHON_SETUP}
- !reference [.python_install, script]
- black ${PROJECT_PATH} --check --diff --quiet
only:
changes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment