style: apply ruff format to plan use panels implementation files
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 1m7s
CI / build (pull_request) Successful in 45s
CI / push-validation (pull_request) Successful in 54s
CI / quality (pull_request) Successful in 1m33s
CI / typecheck (pull_request) Successful in 1m36s
CI / helm (pull_request) Successful in 58s
CI / security (pull_request) Successful in 1m47s
CI / benchmark-regression (pull_request) Failing after 59s
CI / integration_tests (pull_request) Failing after 4m8s
CI / unit_tests (pull_request) Failing after 5m16s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Failing after 5m9s
CI / status-check (pull_request) Failing after 3s
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 1m7s
CI / build (pull_request) Successful in 45s
CI / push-validation (pull_request) Successful in 54s
CI / quality (pull_request) Successful in 1m33s
CI / typecheck (pull_request) Successful in 1m36s
CI / helm (pull_request) Successful in 58s
CI / security (pull_request) Successful in 1m47s
CI / benchmark-regression (pull_request) Failing after 59s
CI / integration_tests (pull_request) Failing after 4m8s
CI / unit_tests (pull_request) Failing after 5m16s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Failing after 5m9s
CI / status-check (pull_request) Failing after 3s
Auto-format three files that failed the CI ruff format --check gate: - features/steps/tdd_plan_use_structured_panels_steps.py - robot/helper_tdd_plan_use_structured_panels.py - src/cleveragents/cli/commands/plan.py No logic changes — formatting only. ISSUES CLOSED: #1468
This commit is contained in:
@@ -263,8 +263,7 @@ def step_plan_use_output_succeed(context: Context) -> None:
|
||||
def step_plan_use_output_contains_plan_id(context: Context) -> None:
|
||||
"""Assert the output contains the plan ULID."""
|
||||
assert _PLAN_ULID in context.result.output, (
|
||||
f"Expected plan ID '{_PLAN_ULID}' in output.\n"
|
||||
f"Output:\n{context.result.output}"
|
||||
f"Expected plan ID '{_PLAN_ULID}' in output.\nOutput:\n{context.result.output}"
|
||||
)
|
||||
|
||||
|
||||
@@ -272,6 +271,5 @@ def step_plan_use_output_contains_plan_id(context: Context) -> None:
|
||||
def step_plan_use_output_contains(context: Context, text: str) -> None:
|
||||
"""Assert the output contains the given text."""
|
||||
assert text in context.result.output, (
|
||||
f"Expected '{text}' in output.\n"
|
||||
f"Output:\n{context.result.output}"
|
||||
f"Expected '{text}' in output.\nOutput:\n{context.result.output}"
|
||||
)
|
||||
|
||||
@@ -138,8 +138,13 @@ def check_plan_created_panel() -> None:
|
||||
sys.exit(1)
|
||||
|
||||
required = [
|
||||
"Plan Created", _PLAN_ULID, "Phase", "Action",
|
||||
"Project", "Automation", "Attempt",
|
||||
"Plan Created",
|
||||
_PLAN_ULID,
|
||||
"Phase",
|
||||
"Action",
|
||||
"Project",
|
||||
"Automation",
|
||||
"Attempt",
|
||||
]
|
||||
missing = [f for f in required if f not in output]
|
||||
if missing:
|
||||
|
||||
@@ -1665,9 +1665,7 @@ def _print_use_action_panels(plan: Any) -> None:
|
||||
hot_token_budget_val: str
|
||||
if plan.cost_metadata is not None:
|
||||
budget = plan.cost_metadata.budget_remaining
|
||||
hot_token_budget_val = (
|
||||
f"{budget:,.2f}" if budget is not None else "(unlimited)"
|
||||
)
|
||||
hot_token_budget_val = f"{budget:,.2f}" if budget is not None else "(unlimited)"
|
||||
else:
|
||||
hot_token_budget_val = "(unknown)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user