From a0efc757f7ed73954a4e2432b54d1cc49c6ed9c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 19:57:27 +0000 Subject: [PATCH 1/2] Bump black from 22.3.0 to 26.3.1 Bumps [black](https://github.com/psf/black) from 22.3.0 to 26.3.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.3.0...26.3.1) --- updated-dependencies: - dependency-name: black dependency-version: 26.3.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 4f7c6c68a014f9fc6a824209a52cee4b60eb2a07 Mon Sep 17 00:00:00 2001 From: Blake Moore Date: Tue, 19 May 2026 20:58:21 +0100 Subject: [PATCH 2/2] sync black pin across ci.yml + pre-commit, apply reformatting Dependabot's bump only touched setup.py, but `black` is also pinned in .github/workflows/ci.yml (was 25.1.0) and .pre-commit-config.yaml (was 25.1.0). Bumping just one of the three would leave the others formatting with an older black, causing CI to fail when local devs format with the new version. Update both to 26.3.1 to match setup.py, then run `black .` to apply the new formatting. Only two example files needed reformatting: examples/export_runs.py and examples/models_and_environments.py (both involved multi-line print() with backslash continuations that black 26 prefers on a single line). --- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 2 +- examples/export_runs.py | 8 ++------ examples/models_and_environments.py | 24 ++++++------------------ 4 files changed, 10 insertions(+), 26 deletions(-) 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)