-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
229 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Check if the project is already installed locally | ||
if ! pip show optimagic &> /dev/null; then | ||
# Install the project locally | ||
pip install -e . | ||
fi | ||
|
||
# Check if ruff is installed | ||
if ! ruff --version &> /dev/null; then | ||
# Install ruff | ||
pip install ruff | ||
fi | ||
|
||
# Run the Python script to create algo_selection.py | ||
python .tools/create_algo_selection_code.py | ||
|
||
# Run ruff format on the created file | ||
ruff format src/optimagic/algo_selection.py --silent --config pyproject.toml | ||
|
||
# Run ruff lint with fixes on the created file | ||
ruff check src/optimagic/algo_selection.py --fix --silent --config pyproject.toml |
Oops, something went wrong.