lint: ruff format + one auto-fix so the push self-test is green again
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
`scripts/lint.sh --fix` from the pinned lint devshell: 90 Python files reformatted (ruff format, mechanical) and one C420 (dict comprehension → dict.fromkeys) in tests/unit/test_f211_sso_skip.py. The push self-test had been failing at the lint stage since build 1313 (2026-08-31) on exactly these files; nothing else changed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FqkQq3CDmFWcQ7u1LzoyRz
This commit is contained in:
@@ -214,7 +214,7 @@ def handshake(
|
||||
elif msg_type == MSG_REJECT:
|
||||
f = _dec_fields(payload)
|
||||
result["error"] = (
|
||||
f"Rejected: {REJECT_TYPES.get(f.get(1, 0), 'Unknown')} " f"— {f.get(2, '')}"
|
||||
f"Rejected: {REJECT_TYPES.get(f.get(1, 0), 'Unknown')} — {f.get(2, '')}"
|
||||
)
|
||||
return result
|
||||
elif msg_type == MSG_CHANNELSTATE:
|
||||
|
||||
@@ -25,7 +25,7 @@ def test_handshake_completes_with_channel_presence(live_app):
|
||||
assert r["server_version"] is not None, "server did not send a Version message"
|
||||
assert r["auth_accepted"], f"authentication not accepted — {r.get('error')}"
|
||||
# Channel presence: the server must expose at least the root channel (beyond a bare TCP open).
|
||||
assert (
|
||||
len(r["channels"]) >= 1
|
||||
), f"server reported no channels (expected >=1 root channel) — {r!r}"
|
||||
assert len(r["channels"]) >= 1, (
|
||||
f"server reported no channels (expected >=1 root channel) — {r!r}"
|
||||
)
|
||||
assert r["server_sync"], f"ServerSync handshake did not complete — {r.get('error')}"
|
||||
|
||||
@@ -23,6 +23,6 @@ def _sqlite(domain, sql):
|
||||
|
||||
|
||||
def test_backup_captures_state(live_app):
|
||||
assert (
|
||||
_sqlite(live_app, "SELECT v FROM ci_marker;") == "original"
|
||||
), "the seeded mumble sqlite marker was not present at backup time"
|
||||
assert _sqlite(live_app, "SELECT v FROM ci_marker;") == "original", (
|
||||
"the seeded mumble sqlite marker was not present at backup time"
|
||||
)
|
||||
|
||||
@@ -25,6 +25,6 @@ def _sqlite(domain, sql):
|
||||
|
||||
|
||||
def test_restore_returns_state(live_app):
|
||||
assert (
|
||||
_sqlite(live_app, "SELECT v FROM ci_marker;") == "original"
|
||||
), "restore did not return the pre-mutation mumble sqlite marker (data-integrity failure)"
|
||||
assert _sqlite(live_app, "SELECT v FROM ci_marker;") == "original", (
|
||||
"restore did not return the pre-mutation mumble sqlite marker (data-integrity failure)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user