Skip to content

Commit

Permalink
Implement filtered autocomplete for algorithm selection (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
janosg authored Nov 5, 2024
1 parent 7cb7710 commit 181bab9
Show file tree
Hide file tree
Showing 25 changed files with 4,487 additions and 137 deletions.
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

0 comments on commit 181bab9

Please sign in to comment.