Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: check-useless-excludes
# - id: identity # Prints all files passed to pre-commits. Debugging.
- repo: https://github.com/lyz-code/yamlfix
rev: 1.18.0
rev: 1.19.0
hooks:
- id: yamlfix
exclude: tests/optimagic/optimizers/_pounders/fixtures
Expand Down Expand Up @@ -89,7 +89,7 @@ repos:
- --blank
exclude: src/optimagic/optimization/algo_options.py
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
rev: v0.14.8
hooks:
# Run the linter.
- id: ruff
Expand All @@ -106,7 +106,7 @@ repos:
- pyi
- jupyter
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -118,7 +118,7 @@ repos:
- '88'
files: (README\.md)
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -130,7 +130,7 @@ repos:
files: (docs/.)
exclude: docs/source/how_to/how_to_specify_algorithm_and_algo_options.md
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
rev: 0.8.2
hooks:
- id: nbstripout
exclude: |
Expand All @@ -141,7 +141,7 @@ repos:
args:
- --drop-empty-cells
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.19.0
hooks:
- id: mypy
files: src|tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-nevergrad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-numpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-pandas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion .tools/envs/testenv-plotly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- scipy>=1.2.1 # run, tests
- sqlalchemy # run, tests
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- annotated-types # dev, tests
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
- sphinxcontrib-bibtex # docs
- intersphinx-registry # docs
- seaborn # dev, tests
- mypy=1.14.1 # dev, tests
- mypy=1.19.0 # dev, tests
- pyyaml # dev, tests
- jinja2 # dev, tests
- furo # dev, docs
Expand Down
2 changes: 1 addition & 1 deletion src/optimagic/optimization/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def _apply_reduction_to_batches(
)
raise ValueError(msg)

batch_results.append(reduced) # type: ignore[arg-type]
batch_results.append(reduced)

return np.array(batch_results, dtype=np.float64)

Expand Down
7 changes: 6 additions & 1 deletion src/optimagic/visualization/slice_plot_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,12 @@ def slice_plot_3d( # type: ignore[no-untyped-def]
)
else:
fig = plot_contour(
x, y, z, scatter_point, plot_kwargs, layout_kwargs
x,
y,
z, # type: ignore[arg-type]
scatter_point,
plot_kwargs,
layout_kwargs,
)
else:
fig = go.Figure()
Expand Down
Loading