diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index dcdbdb9497017325cd5af92c2c7d831478546dca..78ca4e195217f127413342ba172c18d91d42e207 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -113,7 +113,7 @@ variables: } function install_doc_requirements() { - if [[ -f "pyproject.toml" ]]; then + if [[ -f "pyproject.toml" ]] && [[ "${PYTHON_POETRY_DISABLED}" != "true" ]]; then if [[ ! -f "poetry.lock" ]]; then log_error "Poetry detected but \\e[33;1mpoetry.lock\\e[0m file not found: you shall commit it with your project files" exit 1