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

update flake8

parent 3ff604e4
No related branches found
No related tags found
No related merge requests found
Pipeline #22159 failed
......@@ -31,18 +31,6 @@ flake8:
- templates/python/code_quality/flake8/**/*
- tests/flake8_project/**/*
flake8_2:
stage: templates
variables:
PROJECT_PATH: "tests/flake8_project"
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- templates/python/code_quality/flake8/**/*
- tests/flake8_project/**/*
#flake8-plugin:
# stage: templates
# variables:
......
......@@ -2,11 +2,10 @@ include:
- remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/python_install@latest.yaml'
flake8:
image: python:${IMAGE_TAG}
extends:
- .python_install
stage: code_quality
variables:
IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG]
PROJECT_PATH: "."
PYTHON_SETUP: "pip install flake8"
script:
- !reference [.python_install, script]
......
include:
- local: 'templates/python/partial/python_install_2.yml'
flake8_2:
extends:
- .python_install
stage: code_quality
variables:
PYTHON_SETUP: "pip install flake8"
script:
- !reference [.python_install, script]
- flake8 ${PROJECT_PATH} -v
only:
changes:
- ${PROJECT_PATH}/**/*.py
- .gitlab-ci.yml
- ${PROJECT_PATH}/pyproject.toml
- ${PROJECT_PATH}/.flake8
.python_install:
image: python:${IMAGE_TAG}
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "."
PYTHON_SETUP: "pip install -r ${PROJECT_PATH}/requirements.txt"
REQUIREMENTS_FILE: "requirements.txt"
PYTHON_SETUP: "pip install -r ${PROJECT_PATH}/${REQUIREMENTS_FILE}"
script:
- python --version # Debug
- python -m venv venv --upgrade-deps || python -m venv venv # upgrade-deps is not supported before 3.9
......
.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}
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