Skip to content

Commit 6e930bc

Browse files
author
ChexDev
committed
Merge pull request #375 from daskol:compat/py313
PiperOrigin-RevId: 730512260
2 parents 86c3207 + 0fc75ed commit 6e930bc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323

2424
strategy:
2525
matrix:
26-
python-version: ["3.10", "3.11", "3.12"]
26+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2727
os: [ubuntu-latest]
2828
jax-version: ["newest"]
2929
include:
30-
- python-version: "3.9"
30+
- python-version: "3.10"
3131
os: "ubuntu-latest"
3232
jax-version: "0.4.27" # Keep this in sync with version in requirements.txt
3333
- python-version: "3.13"

requirements/requirements-test.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
cloudpickle==2.2.0
2-
# dm-tree is not compatible with Python 3.13.
3-
dm-tree>=0.1.5; python_version < "3.13"
1+
cloudpickle==3.1.0
2+
dm-tree>=0.1.9

test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ flake8 `find chex -name '*.py' | xargs` --count --select=E9,F63,F7,F82,E225,E251
5050
PYLINT_ARGS="-efail -wfail -cfail -rfail"
5151
# Download Google OSS config.
5252
wget -nd -v -t 3 -O .pylintrc https://google.github.io/styleguide/pylintrc
53+
# Enforce two space indent style.
54+
sed -i "s/indent-string.*/indent-string=' '/" .pylintrc
5355
# Append specific config lines.
54-
echo "signature-mutators=toolz.functoolz.curry" >> .pylintrc
5556
echo "disable=unnecessary-lambda-assignment,use-dict-literal" >> .pylintrc
5657
# Lint modules and tests separately.
5758
pylint --rcfile=.pylintrc `find chex -name '*.py' | grep -v 'test.py' | xargs` -d E1102|| pylint-exit $PYLINT_ARGS $?
5859
# Disable `protected-access` warnings for tests.
59-
pylint --rcfile=.pylintrc `find chex -name '*_test.py' | xargs` -d W0212,E1130,E1102 || pylint-exit $PYLINT_ARGS $?
60+
pylint --rcfile=.pylintrc `find chex -name '*_test.py' | xargs` -d W0212,E1130,E1102,E1120 || pylint-exit $PYLINT_ARGS $?
6061
# Cleanup.
6162
rm .pylintrc
6263

0 commit comments

Comments
 (0)