From f3090262606cd4a5ba2a577c7a7a9810836e0de8 Mon Sep 17 00:00:00 2001 From: David <12414531+DavidBellamy@users.noreply.github.com> Date: Tue, 30 Jun 2026 21:24:26 -0700 Subject: [PATCH] style: format wandb_utils.py with black (pre-commit --all-files) Clears a stray black violation on main (from #10) that was failing the required 'Run pre-commit' check on every open PR, since the check runs --all-files. Verified 'uvx pre-commit run --all-files' is fully green after this change. --- miles/utils/wandb_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/miles/utils/wandb_utils.py b/miles/utils/wandb_utils.py index 4be910e127..7f872c00ba 100644 --- a/miles/utils/wandb_utils.py +++ b/miles/utils/wandb_utils.py @@ -60,7 +60,11 @@ def _wandb_init_with_retry(init_kwargs: dict, *, role: str): wait = WANDB_INIT_RETRY_BACKOFF_SECS * (2 ** (attempt - 1)) logger.warning( "wandb.init (%s) attempt %d/%d failed: %s. Retrying in %.1fs.", - role, attempt, WANDB_INIT_RETRY_ATTEMPTS, last_exc, wait, + role, + attempt, + WANDB_INIT_RETRY_ATTEMPTS, + last_exc, + wait, ) time.sleep(wait) logger.error("wandb.init (%s) exhausted %d retries; giving up", role, WANDB_INIT_RETRY_ATTEMPTS)