From 6842565e95af50ac2c0ecbd62cd33c8b90c6ed0d Mon Sep 17 00:00:00 2001 From: Xiangyi Li Date: Sat, 13 Jun 2026 19:23:09 -0400 Subject: [PATCH] style: ruff-format tests/test_cli_hub_env.py (CI gate) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #750's test rewrite passed `ruff check` (lint) but I didn't run `ruff format --check` — the CI `test` job runs format-check as a gating step and failed on `Would reformat: tests/test_cli_hub_env.py`. This applies ruff format (collapses the set comprehension to ruff's canonical form). No logic change. Verified: ruff format --check + ruff check + ty + the test file all pass. --- tests/test_cli_hub_env.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_cli_hub_env.py b/tests/test_cli_hub_env.py index fff991a2..2c0aaeb6 100644 --- a/tests/test_cli_hub_env.py +++ b/tests/test_cli_hub_env.py @@ -75,9 +75,7 @@ def test_environment_group_is_hidden_but_still_resolves() -> None: cmd = typer.main.get_command(app) visible = { - name - for name, sub in cmd.commands.items() - if not getattr(sub, "hidden", False) + name for name, sub in cmd.commands.items() if not getattr(sub, "hidden", False) } assert "sandbox" in visible # canonical local group is visible assert "environment" not in visible # deprecated alias group is hidden