Skip to content

Commit b0b70aa

Browse files
Merge branch 'main' into gradient_free_optimizers
2 parents 451de8c + 5887887 commit b0b70aa

17 files changed

+328
-108
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
- hatchling
4141
- ruff
4242
- repo: https://github.com/pre-commit/pre-commit-hooks
43-
rev: v5.0.0
43+
rev: v6.0.0
4444
hooks:
4545
- id: check-added-large-files
4646
args:
@@ -89,7 +89,7 @@ repos:
8989
- --blank
9090
exclude: src/optimagic/optimization/algo_options.py
9191
- repo: https://github.com/astral-sh/ruff-pre-commit
92-
rev: v0.12.2
92+
rev: v0.12.11
9393
hooks:
9494
# Run the linter.
9595
- id: ruff

.tools/envs/testenv-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- nodefaults
66
dependencies:
7-
- petsc4py
7+
- petsc4py<=3.23.4
88
- jax
99
- cyipopt>=1.4.0 # dev, tests
1010
- pygmo>=2.19.0 # dev, tests, docs
@@ -19,6 +19,7 @@ dependencies:
1919
- numpy >= 2 # run, tests
2020
- pandas # run, tests
2121
- plotly>=6.2 # run, tests
22+
- matplotlib # tests
2223
- pybaum>=0.1.2 # run, tests
2324
- scipy>=1.2.1 # run, tests
2425
- sqlalchemy # run, tests

.tools/envs/testenv-nevergrad.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- numpy >= 2 # run, tests
1818
- pandas # run, tests
1919
- plotly>=6.2 # run, tests
20+
- matplotlib # tests
2021
- pybaum>=0.1.2 # run, tests
2122
- scipy>=1.2.1 # run, tests
2223
- sqlalchemy # run, tests

.tools/envs/testenv-numpy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- cloudpickle # run, tests
1818
- joblib # run, tests
1919
- plotly>=6.2 # run, tests
20+
- matplotlib # tests
2021
- pybaum>=0.1.2 # run, tests
2122
- scipy>=1.2.1 # run, tests
2223
- sqlalchemy # run, tests

.tools/envs/testenv-others.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- numpy >= 2 # run, tests
1818
- pandas # run, tests
1919
- plotly>=6.2 # run, tests
20+
- matplotlib # tests
2021
- pybaum>=0.1.2 # run, tests
2122
- scipy>=1.2.1 # run, tests
2223
- sqlalchemy # run, tests

.tools/envs/testenv-pandas.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- cloudpickle # run, tests
1818
- joblib # run, tests
1919
- plotly>=6.2 # run, tests
20+
- matplotlib # tests
2021
- pybaum>=0.1.2 # run, tests
2122
- scipy>=1.2.1 # run, tests
2223
- sqlalchemy # run, tests

.tools/envs/testenv-plotly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- joblib # run, tests
1818
- numpy >= 2 # run, tests
1919
- pandas # run, tests
20+
- matplotlib # tests
2021
- pybaum>=0.1.2 # run, tests
2122
- scipy>=1.2.1 # run, tests
2223
- sqlalchemy # run, tests

.tools/update_envs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def main() -> None:
2929
## linux
3030
test_env_linux = deepcopy(test_env)
3131
test_env_linux.insert(_insert_idx, " - jax")
32-
test_env_linux.insert(_insert_idx, " - petsc4py")
32+
# pinned petsc4py due to failing test on python 3.11 , revert later
33+
test_env_linux.insert(_insert_idx, " - petsc4py<=3.23.4")
3334

3435
## test environment others
3536
test_env_others = deepcopy(test_env)

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies:
2121
- numpy >= 2 # run, tests
2222
- pandas # run, tests
2323
- plotly>=6.2 # run, tests
24+
- matplotlib # tests
2425
- pybaum>=0.1.2 # run, tests
2526
- scipy>=1.2.1 # run, tests
2627
- sqlalchemy # run, tests

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ module = [
290290

291291
"optimagic.visualization",
292292
"optimagic.visualization.convergence_plot",
293+
"optimagic.visualization.backends",
293294
"optimagic.visualization.deviation_plot",
294295
"optimagic.visualization.history_plots",
295296
"optimagic.visualization.plotting_utilities",
@@ -346,6 +347,8 @@ module = [
346347
"plotly.graph_objects",
347348
"plotly.express",
348349
"plotly.subplots",
350+
"matplotlib",
351+
"matplotlib.pyplot",
349352
"cyipopt",
350353
"nlopt",
351354
"bokeh",

0 commit comments

Comments
 (0)