Skip to content

Re-unify interface and add typing#37

Merged
zachcran merged 78 commits intomainfrom
fix_typing
Nov 13, 2025
Merged

Re-unify interface and add typing#37
zachcran merged 78 commits intomainfrom
fix_typing

Conversation

@zachcran
Copy link
Copy Markdown
Member

@zachcran zachcran commented Nov 1, 2025

Description

The function signatures and config interfaces drifted over time and are no longer matching as they need to between optimizer class implementations. This PR adds mypy and testing to enforce checks for these things and ensure that they cannot drift again for the implemented optimizer classes. With the addition of mypy, more type annotations were also added to help make the interfaces clearer.

Related Issues/Pull Requests

As part of the basic tests I added to the optimizers, they are run against a simple objective function (although answers are not checked). I think that this satisfies and closes #23. In the same vein, I think it closes #4.

Todos

  • Check that the updated CI running some tests individually still works.
  • Resolve error in SQSnobFit failing test
  • Resolve errors in EDBO+ failing tests
  • Ensure everything passes on Windows, too

zachcran and others added 30 commits October 31, 2024 14:36
…s to check the tests for correctness while not interfering with/overshadowing the desired cyrxnopt package import in test files
@zachcran zachcran self-assigned this Nov 1, 2025
@zachcran zachcran marked this pull request as ready for review November 1, 2025 19:40
@zachcran zachcran marked this pull request as draft November 1, 2025 19:40
@zachcran zachcran marked this pull request as ready for review November 12, 2025 17:05
@zachcran zachcran added the bump:minor Increments the minor version. label Nov 12, 2025
@zachcran zachcran merged commit 4b6ba59 into main Nov 13, 2025
@zachcran zachcran deleted the fix_typing branch November 13, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:minor Increments the minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After installing an optimizer, test it on a trivial optimization problem Create basic integration test

2 participants