From 15119e934f3b4d74d969d584b1342ba0d371974f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 8 Sep 2023 23:05:38 +0300 Subject: [PATCH] pre-commit template: Lock Cython to <3. --- templates/pre-commit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/pre-commit.yml b/templates/pre-commit.yml index 29dc3b7..0a389b8 100644 --- a/templates/pre-commit.yml +++ b/templates/pre-commit.yml @@ -22,7 +22,10 @@ pre-commit: # yamllint disable-line rule:line-length TF_HTTP_UNLOCK_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/default/lock TF_HTTP_UNLOCK_METHOD: DELETE + # Needed for locking Cython to <3 for PyYAML<6 to install properly. + PIP_CONSTRAINT: /tmp/constraint.txt script: + - echo 'Cython < 3.0' > "$PIP_CONSTRAINT" - pre-commit run --all-files cache: paths: -- GitLab