diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cd1b26d..ad789995 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a981b7a..fa98d6dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/examples/export_runs.py b/examples/export_runs.py index 969ab8a2..17085a76 100644 --- a/examples/export_runs.py +++ b/examples/export_runs.py @@ -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)) diff --git a/examples/models_and_environments.py b/examples/models_and_environments.py index bae29576..fd3ca4af 100644 --- a/examples/models_and_environments.py +++ b/examples/models_and_environments.py @@ -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( @@ -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) diff --git a/setup.py b/setup.py index e4aa346d..27e925fb 100644 --- a/setup.py +++ b/setup.py @@ -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",