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 e7091148 authored by Dorian Turba's avatar Dorian Turba
Browse files

fix flake8 using python_install

parent 858a3a41
No related branches found
No related tags found
No related merge requests found
Pipeline #22050 failed
......@@ -21,7 +21,6 @@ flake8:
stage: templates
variables:
PROJECT_PATH: "tests/flake8_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH} flake8"
only:
changes:
- .gitlab-ci.yml
......
......@@ -5,14 +5,13 @@ include:
- remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/python_install@0.1.0.yaml'
flake8:
image: python:${IMAGE_TAG}
extend: python_install
stage: code_quality
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "."
PYTHON_SETUP: "pip install ${PROJECT_PATH}[CODE_QUALITY]"
script:
*python_install
python_install
- flake8 ${PROJECT_PATH} -v
only:
changes:
......
.python_install: &python_install
- 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}
.python_install:
image: python:${IMAGE_TAG}
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "."
PYTHON_SETUP: "pip install -r ${PROJECT_PATH}/requirements.txt"
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}
......@@ -9,3 +9,8 @@ authors = [
{ name = "Author Name", email = "author.name@example.com" },
]
description = "A description of what the package is for."
[project.optional-dependencies]
CODE_QUALITY = [
"flake8",
]
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