Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
python-version: "3.11"

- name: Install lint tools
run: pip install black==25.1.0 isort==5.13.2 "flake8==7.2.0"
run: pip install black==26.3.1 isort==5.13.2 "flake8==7.2.0"

- name: black
run: black --check .
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 25.1.0
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
8 changes: 2 additions & 6 deletions examples/export_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,5 @@
# write dataframe to a CSV
all_runs_df.to_csv("{0}/all_runs.csv".format(output_dir), index=False)

print(
"Finished exporting run information to {0}/all_runs.json \
and {0}/all_runs.csv".format(
output_dir
)
)
print("Finished exporting run information to {0}/all_runs.json \
and {0}/all_runs.csv".format(output_dir))
24 changes: 6 additions & 18 deletions examples/models_and_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,15 @@
lambda x: x.get("visibility") == "Global", all_available_environments["data"]
)
)
print(
"This Domino deployment has \
{} global environments".format(
len(global_environments)
)
)
print("This Domino deployment has \
{} global environments".format(len(global_environments)))
chosen_environment_id = global_environments[0].get("id")
print("Environment chosen is {}".format(chosen_environment_id))

# From all the models, choose one
all_available_models = domino.models_list()
print(
"This project \
has {} models".format(
len(all_available_models.get("data", []))
)
)
print("This project \
has {} models".format(len(all_available_models.get("data", []))))

# Publish a brand new model
published_model = domino.model_publish(
Expand All @@ -49,12 +41,8 @@
# Get model versions
def describe_model_versions(model_id):
model_versions = domino.model_versions_get(model_id)
print(
"Model {} \
has {} versions:".format(
model_id, len(model_versions.get("data", []))
)
)
print("Model {} \
has {} versions:".format(model_id, len(model_versions.get("data", []))))
print(model_versions)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_version():
"scikit-learn>=1.6.1", # used in agent tracing tests
"openai>=2.7.2", # used in agent tracing tests
"ai-mock>=0.3.1", # used in agent tracing tests
"black==22.3.0",
"black==26.3.1",
"flake8==4.0.1",
"Jinja2==2.11.3",
"nbconvert==6.3.0",
Expand Down
Loading