oc_chat
Loading...
Searching...
No Matches
verification.py File Reference

Go to the source code of this file.

Classes

class  oc_chat.core.verification.Finding
class  oc_chat.core.verification.VerificationResult
class  oc_chat.core.verification._CmdOutcome

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.verification

Functions

Path oc_chat.core.verification._workspace_root (str|Path|None explicit)
list[str] oc_chat.core.verification._oct_argv (list[str] args)
_CmdOutcome oc_chat.core.verification._default_runner (list[str] argv, int timeout)
str oc_chat.core.verification._norm_path (str path, Path root)
str oc_chat.core.verification._normalize_message (str msg)
dict|None oc_chat.core.verification._extract_json (str stdout)
list[Finding] oc_chat.core.verification._parse_lint (dict data, Path root)
list[Finding] oc_chat.core.verification._parse_typecheck (str output, Path root)
tuple[str, list[Finding]] oc_chat.core.verification._classify_lint (_CmdOutcome outcome, Path root)
tuple[str, list[Finding]] oc_chat.core.verification._classify_typecheck (_CmdOutcome outcome, Path root)
list[str] oc_chat.core.verification._map_test_targets (list[str] changed_files, Path root)
str oc_chat.core.verification._classify_tests (_CmdOutcome outcome)
list[Finding] oc_chat.core.verification._subtract_baseline (list[Finding] post, "Counter[tuple[str, str, str]] | None" baseline)
VerificationResult oc_chat.core.verification.run_verification (list[str] changed_files, "Counter[tuple[str, str, str]] | None" baseline, "VerificationConfig" cfg, *, str|Path|None workspace_root=None, object|None presenter=None, Runner|None runner=None)
"Counter[tuple[str, str, str]]" oc_chat.core.verification.capture_baseline ("VerificationConfig" cfg, *, str|Path|None workspace_root=None, Runner|None runner=None)
list[str] oc_chat.core.verification._resolve_baseline_scope (tuple[str,...]|None scope, Path root)
str oc_chat.core.verification.render_observation (VerificationResult result, int max_findings=10)
list[str] oc_chat.core.verification.changed_paths_from_result (str tool_name, dict|None tool_args, object result, *, str|Path|None workspace_root=None)
list[str] oc_chat.core.verification._companion_test_paths (str path, Path root)
list[str] oc_chat.core.verification._ancestor_package_markers (str path, Path root)
object|None oc_chat.core.verification._spinner_start (object|None presenter, str label)
None oc_chat.core.verification._spinner_stop (object|None presenter, object|None handle)

Variables

str oc_chat.core.verification.CLEAN = "clean"
str oc_chat.core.verification.FINDINGS = "findings"
str oc_chat.core.verification.INFRA_ERROR = "infra_error"
str oc_chat.core.verification.TIMEOUT = "timeout"
str oc_chat.core.verification.UNPARSEABLE = "unparseable"
str oc_chat.core.verification.SKIPPED = "skipped"
 oc_chat.core.verification._PYRIGHT_RE
 oc_chat.core.verification._RULE_RE = re.compile(r"\(([A-Za-z][A-Za-z0-9]+)\‍)\s*$")
 oc_chat.core.verification._POS_RE = re.compile(r"\b\d+\b")
 oc_chat.core.verification.Runner = Callable[[list[str], int], _CmdOutcome]