Skip to content

Commit a555ea5

Browse files
Trecekclaude
andcommitted
style: apply pre-commit auto-fixes (line-length) to probe harness
Shorten the long pip/pytest/gh command string in TOOL_CLASS_PAYLOADS (Bash + mcp_run_cmd entries) and trim the inline comment in test_probe to fit within the 99-char ruff line limit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 5d44d30 commit a555ea5

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

tests/execution/backends/test_hook_deny_efficacy_probe.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
"Bash": {
5656
"tool_name": TOOL_CLASSES["Bash"],
5757
"tool_input": {
58-
"command": "pip install -e . && pytest tests/ && gh pr create && gh run download && git commit --amend",
58+
"command": (
59+
"pip install -e . && pytest tests/ "
60+
"&& gh pr create && gh run download "
61+
"&& git commit --amend"
62+
),
5963
"run_in_background": True,
6064
},
6165
},
@@ -94,7 +98,11 @@
9498
"mcp_run_cmd": {
9599
"tool_name": TOOL_CLASSES["mcp_run_cmd"],
96100
"tool_input": {
97-
"command": "pip install -e . && pytest tests/ && gh pr create && gh run download && git commit --amend",
101+
"command": (
102+
"pip install -e . && pytest tests/ "
103+
"&& gh pr create && gh run download "
104+
"&& git commit --amend"
105+
),
98106
"run_in_background": True,
99107
},
100108
},
@@ -247,7 +255,7 @@ def test_probe(
247255

248256
# --- Inert check for codex backend ---
249257
# Mirrors generate_codex_hooks_config() at _codex_hooks.py:52-55: skip
250-
# session_scope=="interactive_only" AND skip codex_status in {"fix-required", "not-applicable"}.
258+
# interactive_only session_scope OR codex_status in {fix-required, not-applicable}.
251259
if backend == "codex":
252260
if hookdef.session_scope == "interactive_only" or hookdef.codex_status in _SKIP_CODEX:
253261
codex_config = generate_codex_hooks_config()

0 commit comments

Comments
 (0)