Skip to content

Commit

Permalink
ci: pin jax<0.4.31 for mypy on gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Aug 5, 2024
1 parent a2683ea commit 3f848dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ Pylint:

Mypy:
script: |
EXTRA_INSTALL="jax[cpu]"
# NOTE: jax>=0.4.31 requires python 3.10 and uses pattern matching
# which conflicts with our mypy.python_version = '3.8' setting
EXTRA_INSTALL="mypy pytest jax[cpu]<0.4.31"
curl -L -O https://tiker.net/ci-support-v0
. ./ci-support-v0
build_py_project_in_venv
python -m pip install mypy pytest
./run-mypy.sh
tags:
- python3
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ known-local-folder = [
lines-after-imports = 2

[tool.mypy]
# TODO: unpin jax version on CI when this gets bumped to 3.10
python_version = "3.8"
warn_unused_ignores = true
# TODO: enable this
Expand Down

0 comments on commit 3f848dc

Please sign in to comment.