From 61fdf83ddc702d2c39b490ac887ff23c4739035b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 11:40:23 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/notebook_validator.py | 15 +++++++++------ tests/studio/playwright_chat_ui.py | 9 +++++++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/scripts/notebook_validator.py b/scripts/notebook_validator.py index 057362e760..79ceb48bf0 100644 --- a/scripts/notebook_validator.py +++ b/scripts/notebook_validator.py @@ -63,8 +63,8 @@ COLAB_FALLBACK_FILE = DATA_DIR / "colab_pip_freeze.gpu.txt" # Colab preinstall (R-INST-002/003/004/005) gets earlier signal. COLAB_ORACLE_FILES: dict[str, str] = { "pip-freeze.gpu.txt": "colab_pip_freeze.gpu.txt", - "apt-list-gpu.txt": "colab_apt_list.gpu.txt", - "os-info-gpu.txt": "colab_os_info.gpu.txt", + "apt-list-gpu.txt": "colab_apt_list.gpu.txt", + "os-info-gpu.txt": "colab_os_info.gpu.txt", } COLAB_ORACLE_BASE_URL = ( "https://raw.githubusercontent.com/googlecolab/backend-info/main/" @@ -1144,8 +1144,8 @@ def _parse_os_lines(text: str) -> dict[str, str]: _COLAB_ORACLE_PARSERS = { "pip-freeze.gpu.txt": _parse_pip_lines, - "apt-list-gpu.txt": _parse_apt_lines, - "os-info-gpu.txt": _parse_os_lines, + "apt-list-gpu.txt": _parse_apt_lines, + "os-info-gpu.txt": _parse_os_lines, } @@ -1181,7 +1181,9 @@ def cmd_colab_diff(args: argparse.Namespace) -> int: print(f"::warning::colab-diff: could not fetch {url}: {e}") continue if not snap_path.exists(): - print(f"::warning::colab-diff: no committed snapshot at {snap_path}; skipping") + print( + f"::warning::colab-diff: no committed snapshot at {snap_path}; skipping" + ) continue snapshot_text = snap_path.read_text(encoding = "utf-8", errors = "replace") parser = _COLAB_ORACLE_PARSERS[upstream_name] @@ -1274,7 +1276,8 @@ def main(argv: list[str] | None = None) -> int: pa = sub.add_parser("colab-diff") pa.add_argument("--snapshot-dir", default = str(DATA_DIR)) pa.add_argument( - "--strict", action = "store_true", + "--strict", + action = "store_true", help = "exit 1 on any drift (default: advisory; exit 0)", ) diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py index 5b367e3b8b..5a1f1a17d4 100644 --- a/tests/studio/playwright_chat_ui.py +++ b/tests/studio/playwright_chat_ui.py @@ -333,9 +333,14 @@ with sync_playwright() as p: flush = True, ) if console_errors: - print(f"[ui] first console.error: {console_errors[0][:200]!r}", flush = True) + print( + f"[ui] first console.error: {console_errors[0][:200]!r}", + flush = True, + ) if page_errors: - print(f"[ui] first pageerror: {page_errors[0][:200]!r}", flush = True) + print( + f"[ui] first pageerror: {page_errors[0][:200]!r}", flush = True + ) try: shoot(f"03-composer-wait-attempt-{_attempt + 1}-fail") except Exception: