Skip to content

Commit 3b2fb73

Browse files
Merge branch 'main' into nevergrad_documentation_to_new_format
2 parents af91bc5 + 522b8c9 commit 3b2fb73

48 files changed

Lines changed: 4324 additions & 647 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-useless-excludes
77
# - id: identity # Prints all files passed to pre-commits. Debugging.
88
- repo: https://github.com/lyz-code/yamlfix
9-
rev: 1.17.0
9+
rev: 1.19.1
1010
hooks:
1111
- id: yamlfix
1212
exclude: tests/optimagic/optimizers/_pounders/fixtures
@@ -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.11
92+
rev: v0.14.10
9393
hooks:
9494
# Run the linter.
9595
- id: ruff
@@ -106,7 +106,7 @@ repos:
106106
- pyi
107107
- jupyter
108108
- repo: https://github.com/executablebooks/mdformat
109-
rev: 0.7.22
109+
rev: 1.0.0
110110
hooks:
111111
- id: mdformat
112112
additional_dependencies:
@@ -118,7 +118,7 @@ repos:
118118
- '88'
119119
files: (README\.md)
120120
- repo: https://github.com/executablebooks/mdformat
121-
rev: 0.7.22
121+
rev: 1.0.0
122122
hooks:
123123
- id: mdformat
124124
additional_dependencies:
@@ -130,7 +130,7 @@ repos:
130130
files: (docs/.)
131131
exclude: docs/source/how_to/how_to_specify_algorithm_and_algo_options.md
132132
- repo: https://github.com/kynan/nbstripout
133-
rev: 0.8.1
133+
rev: 0.8.2
134134
hooks:
135135
- id: nbstripout
136136
exclude: |
@@ -141,7 +141,7 @@ repos:
141141
args:
142142
- --drop-empty-cells
143143
- repo: https://github.com/pre-commit/mirrors-mypy
144-
rev: v1.14.1
144+
rev: v1.19.1
145145
hooks:
146146
- id: mypy
147147
files: src|tests
@@ -153,7 +153,13 @@ repos:
153153
- types-cffi
154154
- types-openpyxl
155155
- types-jinja2
156+
- bokeh
156157
ci:
157158
autoupdate_schedule: monthly
158159
skip:
159160
- update-algo-selection-code
161+
# Skip mypy stubtest on pre-commit.ci due to maximum size limitations. This is
162+
# unlikely to get better in the future as dependencies keep growing. Local runs
163+
# of pre-commit would still execute stubtest. For CI, we have a separate GitHub
164+
# Action that runs stubtest.
165+
- mypy

.tools/envs/testenv-linux.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,28 @@ dependencies:
2020
- pandas # run, tests
2121
- plotly>=6.2 # run, tests
2222
- matplotlib # tests
23+
- bokeh # tests
24+
- altair # tests
2325
- pybaum>=0.1.2 # run, tests
2426
- scipy>=1.2.1 # run, tests
2527
- sqlalchemy # run, tests
2628
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
29+
- mypy=1.19.1 # dev, tests
2830
- pyyaml # dev, tests
2931
- jinja2 # dev, tests
3032
- annotated-types # dev, tests
3133
- iminuit # dev, tests
3234
- cma # dev, tests
3335
- pygad # dev, tests
36+
- pytorch-cpu # dev, tests
3437
- pip: # dev, tests, docs
3538
- bayesian-optimization>=2.0.4 # dev, tests
3639
- DFO-LS>=1.5.3 # dev, tests
3740
- Py-BOBYQA # dev, tests
3841
- fides==0.7.4 # dev, tests
3942
- kaleido>=1.0 # dev, tests
4043
- gradient_free_optimizers # dev, tests
44+
- pyswarms # dev, tests
4145
- pandas-stubs # dev, tests
4246
- types-cffi # dev, tests
4347
- types-openpyxl # dev, tests

.tools/envs/testenv-nevergrad.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,33 @@ dependencies:
1818
- pandas # run, tests
1919
- plotly>=6.2 # run, tests
2020
- matplotlib # tests
21+
- bokeh # tests
22+
- altair # tests
2123
- pybaum>=0.1.2 # run, tests
2224
- scipy>=1.2.1 # run, tests
2325
- sqlalchemy # run, tests
2426
- seaborn # dev, tests
25-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.1 # dev, tests
2628
- pyyaml # dev, tests
2729
- jinja2 # dev, tests
2830
- annotated-types # dev, tests
2931
- iminuit # dev, tests
3032
- cma # dev, tests
3133
- pygad # dev, tests
34+
- pytorch-cpu # dev, tests
3235
- pip: # dev, tests, docs
3336
- DFO-LS>=1.5.3 # dev, tests
3437
- Py-BOBYQA # dev, tests
3538
- fides==0.7.4 # dev, tests
3639
- kaleido>=1.0 # dev, tests
3740
- gradient_free_optimizers # dev, tests
41+
- pyswarms # dev, tests
3842
- pandas-stubs # dev, tests
3943
- types-cffi # dev, tests
4044
- types-openpyxl # dev, tests
4145
- types-jinja2 # dev, tests
4246
- sqlalchemy-stubs # dev, tests
43-
- sphinxcontrib-mermaid # dev, tests, docs
44-
- -e ../../
4547
- bayesian_optimization==1.4.0
4648
- nevergrad
49+
- sphinxcontrib-mermaid # dev, tests, docs
50+
- -e ../../

.tools/envs/testenv-numpy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ dependencies:
1818
- joblib # run, tests
1919
- plotly>=6.2 # run, tests
2020
- matplotlib # tests
21+
- bokeh # tests
22+
- altair # tests
2123
- pybaum>=0.1.2 # run, tests
2224
- scipy>=1.2.1 # run, tests
2325
- sqlalchemy # run, tests
2426
- seaborn # dev, tests
25-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.1 # dev, tests
2628
- pyyaml # dev, tests
2729
- jinja2 # dev, tests
2830
- annotated-types # dev, tests
2931
- iminuit # dev, tests
3032
- cma # dev, tests
3133
- pygad # dev, tests
34+
- pytorch-cpu # dev, tests
3235
- pip: # dev, tests, docs
3336
- bayesian-optimization>=2.0.4 # dev, tests
3437
- DFO-LS>=1.5.3 # dev, tests
3538
- Py-BOBYQA # dev, tests
3639
- fides==0.7.4 # dev, tests
3740
- kaleido>=1.0 # dev, tests
3841
- gradient_free_optimizers # dev, tests
42+
- pyswarms # dev, tests
3943
- types-cffi # dev, tests
4044
- types-openpyxl # dev, tests
4145
- types-jinja2 # dev, tests

.tools/envs/testenv-others.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ dependencies:
1818
- pandas # run, tests
1919
- plotly>=6.2 # run, tests
2020
- matplotlib # tests
21+
- bokeh # tests
22+
- altair # tests
2123
- pybaum>=0.1.2 # run, tests
2224
- scipy>=1.2.1 # run, tests
2325
- sqlalchemy # run, tests
2426
- seaborn # dev, tests
25-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.1 # dev, tests
2628
- pyyaml # dev, tests
2729
- jinja2 # dev, tests
2830
- annotated-types # dev, tests
2931
- iminuit # dev, tests
3032
- cma # dev, tests
3133
- pygad # dev, tests
34+
- pytorch-cpu # dev, tests
3235
- pip: # dev, tests, docs
3336
- bayesian-optimization>=2.0.4 # dev, tests
3437
- DFO-LS>=1.5.3 # dev, tests
3538
- Py-BOBYQA # dev, tests
3639
- fides==0.7.4 # dev, tests
3740
- kaleido>=1.0 # dev, tests
3841
- gradient_free_optimizers # dev, tests
42+
- pyswarms # dev, tests
3943
- pandas-stubs # dev, tests
4044
- types-cffi # dev, tests
4145
- types-openpyxl # dev, tests

.tools/envs/testenv-pandas.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ dependencies:
1818
- joblib # run, tests
1919
- plotly>=6.2 # run, tests
2020
- matplotlib # tests
21+
- bokeh # tests
22+
- altair # tests
2123
- pybaum>=0.1.2 # run, tests
2224
- scipy>=1.2.1 # run, tests
2325
- sqlalchemy # run, tests
2426
- seaborn # dev, tests
25-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.1 # dev, tests
2628
- pyyaml # dev, tests
2729
- jinja2 # dev, tests
2830
- annotated-types # dev, tests
2931
- iminuit # dev, tests
3032
- cma # dev, tests
3133
- pygad # dev, tests
34+
- pytorch-cpu # dev, tests
3235
- pip: # dev, tests, docs
3336
- bayesian-optimization>=2.0.4 # dev, tests
3437
- DFO-LS>=1.5.3 # dev, tests
3538
- Py-BOBYQA # dev, tests
3639
- fides==0.7.4 # dev, tests
3740
- kaleido>=1.0 # dev, tests
3841
- gradient_free_optimizers # dev, tests
42+
- pyswarms # dev, tests
3943
- types-cffi # dev, tests
4044
- types-openpyxl # dev, tests
4145
- types-jinja2 # dev, tests

.tools/envs/testenv-plotly.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,33 @@ dependencies:
1818
- numpy >= 2 # run, tests
1919
- pandas # run, tests
2020
- matplotlib # tests
21+
- bokeh # tests
22+
- altair # tests
2123
- pybaum>=0.1.2 # run, tests
2224
- scipy>=1.2.1 # run, tests
2325
- sqlalchemy # run, tests
2426
- seaborn # dev, tests
25-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.1 # dev, tests
2628
- pyyaml # dev, tests
2729
- jinja2 # dev, tests
2830
- annotated-types # dev, tests
2931
- iminuit # dev, tests
3032
- cma # dev, tests
3133
- pygad # dev, tests
34+
- pytorch-cpu # dev, tests
3235
- pip: # dev, tests, docs
3336
- bayesian-optimization>=2.0.4 # dev, tests
3437
- DFO-LS>=1.5.3 # dev, tests
3538
- Py-BOBYQA # dev, tests
3639
- fides==0.7.4 # dev, tests
40+
- bayes_optim # dev, tests
3741
- gradient_free_optimizers # dev, tests
42+
- pyswarms # dev, tests
3843
- pandas-stubs # dev, tests
3944
- types-cffi # dev, tests
4045
- types-openpyxl # dev, tests
4146
- types-jinja2 # dev, tests
4247
- sqlalchemy-stubs # dev, tests
43-
- sphinxcontrib-mermaid # dev, tests, docs
44-
- -e ../../
4548
- kaleido<0.3
49+
- sphinxcontrib-mermaid # dev, tests, docs
50+
- -e ../../

docs/rtd_environment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ dependencies:
1313
- sphinxcontrib-bibtex
1414
- sphinx-copybutton
1515
- sphinx-design
16+
- sphinx-llm
17+
- sphinx-llms-txt
1618
- ipython
1719
- ipython_genutils
1820
- myst-nb
1921
- furo
2022
- pybaum
2123
- matplotlib
24+
- bokeh
25+
- altair
26+
- anywidget
2227
- seaborn
2328
- numpy
2429
- pandas

0 commit comments

Comments
 (0)