Skip to content

Commit a8b7787

Browse files
Update to latest release workflow + bump to Lineax compatible with latest JAX
1 parent f320b67 commit a8b7787

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

Diff for: .github/workflows/release.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Release
13-
uses: patrick-kidger/action_update_python_project@v2
13+
uses: patrick-kidger/action_update_python_project@v4
1414
with:
1515
python-version: "3.11"
1616
test-script: |
@@ -21,7 +21,3 @@ jobs:
2121
pypi-token: ${{ secrets.pypi_token }}
2222
github-user: patrick-kidger
2323
github-token: ${{ github.token }}
24-
email-user: ${{ secrets.email_user }}
25-
email-token: ${{ secrets.email_token }}
26-
email-server: ${{ secrets.email_server }}
27-
email-target: ${{ secrets.email_target }}

Diff for: .pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repos:
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
1717
rev: v0.1.7
1818
hooks:
19-
- id: ruff # linter
19+
- id: ruff-format
2020
types_or: [ python, pyi, jupyter ]
21-
args: [ --fix ]
22-
- id: ruff-format # formatter
21+
- id: ruff
2322
types_or: [ python, pyi, jupyter ]
23+
args: [ --fix ]
2424
- repo: https://github.com/RobertCraigie/pyright-python
2525
rev: v1.1.331
2626
hooks:

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
"Topic :: Scientific/Engineering :: Mathematics",
3434
]
3535
urls = {repository = "https://github.com/patrick-kidger/optimistix" }
36-
dependencies = ["jax>=0.4.28", "jaxtyping>=0.2.23", "lineax>=0.0.5", "equinox>=0.11.7", "typing_extensions>=4.5.0"]
36+
dependencies = ["jax>=0.4.28", "jaxtyping>=0.2.23", "lineax>=0.0.6", "equinox>=0.11.7", "typing_extensions>=4.5.0"]
3737

3838
[build-system]
3939
requires = ["hatchling"]

Diff for: tests/test_solve.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ def test_forward_mode():
5656
def f(y, _):
5757
return eqxi.nondifferentiable_backward(y)
5858

59-
sol = optx.least_squares(
59+
optx.least_squares(
6060
f,
6161
optx.LevenbergMarquardt(rtol=1e-4, atol=1e-4),
6262
jnp.arange(3.0),
6363
options=dict(jac="fwd"),
6464
)
65-
return sol.value

0 commit comments

Comments
 (0)