Commit 15119e93 authored by nimrod's avatar nimrod
Browse files

pre-commit template: Lock Cython to <3.

parent d442b830
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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: