fix(acms): restore explicit UKO re-exports, fix type annotations, clean lint directives

Restore explicit 'from cleveragents.acms.uko import (...)' block in __init__.py so that acms_skeleton_compressor.py can import CODE_DETAIL_LEVEL_MAP etc.

Fix invalid dict[str, callable] annotation in robot helper to use
collections.abc.Callable[[], None].

Remove unused noqa directives (E501, C901) now that ruff rules are stricter.

ISSUES CLOSED: #9583
This commit is contained in:
2026-05-09 22:44:02 +00:00
committed by drew
parent 870a51bff8
commit 9325a75403
3 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
from __future__ import annotations
import sys
from pathlib import Path
from collections.abc import Callable
def _test_file_within_limit() -> None:
@@ -241,7 +241,7 @@ def _test_assembled_context() -> None:
print("assembled-context-ok")
_TESTS: dict[str, callable] = {
_TESTS: dict[str, Callable[[], None]] = {
"file-within-limit": _test_file_within_limit,
"file-exceeds-limit": _test_file_exceeds_limit,
"total-size-cutoff": _test_total_size_cutoff,
@@ -255,7 +255,7 @@ _TESTS: dict[str, callable] = {
}
if __name__ == "__main__": # noqa: C901
if __name__ == "__main__":
if len(sys.argv) < 2 or sys.argv[1] not in _TESTS:
print(
f"Usage: {sys.argv[0]} <{'|'.join(sorted(_TESTS))}>",