Skip to content

Commit 7e61b97

Browse files
[pre-commit.ci] pre-commit autoupdate (#651)
Co-authored-by: Tim Mensinger <mensingertim@gmail.com>
1 parent 6644247 commit 7e61b97

10 files changed

Lines changed: 20 additions & 15 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 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.18.0
9+
rev: 1.19.0
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.13.3
92+
rev: v0.14.8
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.0
145145
hooks:
146146
- id: mypy
147147
files: src|tests

.tools/envs/testenv-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
- scipy>=1.2.1 # run, tests
2727
- sqlalchemy # run, tests
2828
- seaborn # dev, tests
29-
- mypy=1.14.1 # dev, tests
29+
- mypy=1.19.0 # dev, tests
3030
- pyyaml # dev, tests
3131
- jinja2 # dev, tests
3232
- annotated-types # dev, tests

.tools/envs/testenv-nevergrad.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- scipy>=1.2.1 # run, tests
2525
- sqlalchemy # run, tests
2626
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.0 # dev, tests
2828
- pyyaml # dev, tests
2929
- jinja2 # dev, tests
3030
- annotated-types # dev, tests

.tools/envs/testenv-numpy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- scipy>=1.2.1 # run, tests
2525
- sqlalchemy # run, tests
2626
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.0 # dev, tests
2828
- pyyaml # dev, tests
2929
- jinja2 # dev, tests
3030
- annotated-types # dev, tests

.tools/envs/testenv-others.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- scipy>=1.2.1 # run, tests
2525
- sqlalchemy # run, tests
2626
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.0 # dev, tests
2828
- pyyaml # dev, tests
2929
- jinja2 # dev, tests
3030
- annotated-types # dev, tests

.tools/envs/testenv-pandas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- scipy>=1.2.1 # run, tests
2525
- sqlalchemy # run, tests
2626
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.0 # dev, tests
2828
- pyyaml # dev, tests
2929
- jinja2 # dev, tests
3030
- annotated-types # dev, tests

.tools/envs/testenv-plotly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- scipy>=1.2.1 # run, tests
2525
- sqlalchemy # run, tests
2626
- seaborn # dev, tests
27-
- mypy=1.14.1 # dev, tests
27+
- mypy=1.19.0 # dev, tests
2828
- pyyaml # dev, tests
2929
- jinja2 # dev, tests
3030
- annotated-types # dev, tests

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies:
3535
- sphinxcontrib-bibtex # docs
3636
- intersphinx-registry # docs
3737
- seaborn # dev, tests
38-
- mypy=1.14.1 # dev, tests
38+
- mypy=1.19.0 # dev, tests
3939
- pyyaml # dev, tests
4040
- jinja2 # dev, tests
4141
- furo # dev, docs

src/optimagic/optimization/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def _apply_reduction_to_batches(
517517
)
518518
raise ValueError(msg)
519519

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

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

src/optimagic/visualization/slice_plot_3d.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,12 @@ def slice_plot_3d( # type: ignore[no-untyped-def]
340340
)
341341
else:
342342
fig = plot_contour(
343-
x, y, z, scatter_point, plot_kwargs, layout_kwargs
343+
x,
344+
y,
345+
z, # type: ignore[arg-type]
346+
scatter_point,
347+
plot_kwargs,
348+
layout_kwargs,
344349
)
345350
else:
346351
fig = go.Figure()

0 commit comments

Comments
 (0)