Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement filtered autocomplete for algorithm selection #534

Merged
merged 34 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
010b95d
First draft for filtered autocomplete in algo selection.
janosg Sep 24, 2024
baacbee
Fix __all__ in optimagic init.
janosg Sep 25, 2024
6f624d3
Improve code gen pre-commit hook
timmens Sep 25, 2024
a3c4050
Add py.typed files.
janosg Sep 30, 2024
3831ae7
Install dependencies via pre-commit hooks
timmens Sep 30, 2024
163b48e
Skip algo selection updating hook on CI and add test
timmens Sep 30, 2024
07f8c52
Fix env file?
janosg Oct 1, 2024
0f901fd
Fix actions?
janosg Oct 1, 2024
4d9a158
Fix actions?
janosg Oct 1, 2024
5223e1d
Automatically import all modules in the optimizers package.
janosg Oct 2, 2024
dd5f0ac
Add docstring to auto generated code.
janosg Oct 2, 2024
bbdce91
Fix?
janosg Oct 2, 2024
9a02b71
Fix?
janosg Oct 2, 2024
204b680
Fix?
janosg Oct 2, 2024
59400e0
Get rid of old algorithms module.
janosg Oct 2, 2024
95189c5
Rename algo_selection to algorithms.
janosg Oct 2, 2024
7d1a6bb
Polishing.
janosg Oct 2, 2024
0e50475
Update optimization tutorial.
janosg Oct 4, 2024
1ee17b0
Add scalar as selection category.
janosg Oct 4, 2024
869d23c
Write now how-to guide for specifying and configuring algorithms.
janosg Oct 4, 2024
60e73c4
Trigger docs build.
janosg Oct 4, 2024
5445c1f
Fix tabs.
janosg Oct 11, 2024
f9f3f50
Fix?
janosg Oct 11, 2024
02fb4d1
Fix?
janosg Oct 11, 2024
d4d666c
Fix merge conflicts.
janosg Oct 31, 2024
56735ab
Merge branch 'main' into algo-selection
janosg Oct 31, 2024
d466d17
Address comments from code review.
janosg Oct 31, 2024
d2d343d
Remove redundant test.
janosg Oct 31, 2024
bfeac34
Add more tests for algo selection.
janosg Oct 31, 2024
e4a85f3
Run type checker over tools folder.
janosg Oct 31, 2024
9114586
Merge branch 'main' into algo-selection
janosg Nov 5, 2024
2853d96
Update docs/source/how_to/how_to_specify_algorithm_and_algo_options.md
janosg Nov 5, 2024
445747a
Use strings instead of Algorithm classes in .All and .Available.
janosg Nov 5, 2024
25e1151
Polishing.
janosg Nov 5, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: create build environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.5.6-0
environment-file: ./.tools/envs/testenv-others.yml
cache-environment: true
create-args: |
Expand Down
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ repos:
language: python
always_run: true
require_serial: true
- repo: local
hooks:
- id: update-algo-selection-code
name: update algo selection code
entry: bash .tools/create_and_format_algo_selection_code.sh
language: python
files: (src/optimagic/optimizers/.|src/optimagic/algorithms.py|.tools/.)
always_run: false
require_serial: true
additional_dependencies:
- hatchling
- ruff
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down Expand Up @@ -107,6 +119,7 @@ repos:
- --wrap
- '88'
files: (docs/.)
exclude: docs/source/how_to/how_to_specify_algorithm_and_algo_options.md
- repo: https://github.com/kynan/nbstripout
rev: 0.8.0
hooks:
Expand Down Expand Up @@ -135,3 +148,5 @@ repos:
- --config=pyproject.toml
ci:
autoupdate_schedule: monthly
skip:
- update-algo-selection-code
Loading