Skip to content

Commit 8bbb161

Browse files
rustyconoverclaude
andcommitted
Fix CI: formatting, missing docstring param, lint warning
- Format http/_server.py (whitespace) - Add server_version to RpcServer.__init__ docstring - Use list.extend in conformance validator (PERF401) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b586c2d commit 8bbb161

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

vgi_rpc/access_log_conformance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def validate_access_logs(entries: list[dict[str, object]]) -> list[Violation]:
6666
status = str(entry.get("status", ""))
6767

6868
# --- Always required ---
69-
for field in _ALWAYS_REQUIRED:
70-
if field not in entry:
71-
violations.append(Violation(i, method, field, "required on all entries"))
69+
violations.extend(
70+
Violation(i, method, field, "required on all entries") for field in _ALWAYS_REQUIRED if field not in entry
71+
)
7272

7373
# --- request_data on dispatch methods ---
7474
if (method in _REQUEST_DATA_METHODS or _is_catalog_method(method)) and not entry.get("request_data"):

vgi_rpc/http/_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ def _pack_state_token(
243243
return base64.b64encode(payload + mac)
244244

245245

246-
def _unpack_state_token(
247-
token: bytes, signing_key: bytes, token_ttl: int = 0
248-
) -> tuple[bytes, bytes, bytes, str]:
246+
def _unpack_state_token(token: bytes, signing_key: bytes, token_ttl: int = 0) -> tuple[bytes, bytes, bytes, str]:
249247
"""Unpack and verify a signed state token.
250248
251249
Args:

vgi_rpc/rpc/_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def __init__(
236236
implementation: Object implementing all methods from *protocol*.
237237
external_location: Optional ExternalLocation configuration.
238238
server_id: Optional server identifier; auto-generated if ``None``.
239+
server_version: Version string included in access log entries.
239240
enable_describe: When ``True``, the server handles ``__describe__``
240241
requests returning machine-readable method metadata.
241242
ipc_validation: Validation level for incoming IPC batches.

0 commit comments

Comments
 (0)