Skip to content

Switch back to try-except-pass instead of contextlib.suppress

Codecov / codecov/patch succeeded Nov 13, 2024 in 1s

84.84% of diff hit (target 80.00%)

View this Pull Request on Codecov

84.84% of diff hit (target 80.00%)

Annotations

Check warning on line 153 in src/optimagic/optimization/algorithm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimization/algorithm.py#L153

Added line #L153 was not covered by tests

Check warning on line 161 in src/optimagic/optimization/algorithm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimization/algorithm.py#L161

Added line #L161 was not covered by tests

Check warning on line 167 in src/optimagic/optimization/algorithm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimization/algorithm.py#L167

Added line #L167 was not covered by tests

Check warning on line 171 in src/optimagic/optimization/algorithm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimization/algorithm.py#L171

Added line #L171 was not covered by tests

Check warning on line 53 in src/optimagic/optimizers/pygmo_optimizers.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimizers/pygmo_optimizers.py#L52-L53

Added lines #L52 - L53 were not covered by tests

Check warning on line 28 in src/optimagic/optimizers/tao_optimizers.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/optimizers/tao_optimizers.py#L27-L28

Added lines #L27 - L28 were not covered by tests

Check warning on line 202 in src/optimagic/visualization/history_plots.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/visualization/history_plots.py#L202

Added line #L202 was not covered by tests

Check warning on line 204 in src/optimagic/visualization/history_plots.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/optimagic/visualization/history_plots.py#L204

Added line #L204 was not covered by tests