← Về thư mục
skills/iso-standards-readiness/scripts/_common.py
- InputError · class · L64-L65 — class InputError(ValueError)
- Finding · class · L69-L83 — class Finding
- as_dict · method · L77-L83 — def as_dict(self) -> dict[str, str]
- _reject_constant · function · L86-L87 — def _reject_constant(value: str) -> None
- _unique_object · function · L90-L96 — def _unique_object(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- _check_depth_and_size · function · L99-L117 — def _check_depth_and_size(value: Any) -> None
- _safe_input_file · function · L120-L137 — def _safe_input_file(path_text: str, suffixes: set[str]) -> Path
- load_json · function · L140-L159 — def load_json(path_text: str) -> Any
- load_markdown · function · L162-L172 — def load_markdown(path_text: str) -> str
- require_root_object · function · L175-L178 — def require_root_object(value: Any) -> dict[str, Any]
- is_placeholder · function · L181-L186 — def is_placeholder(value: Any) -> bool
- valid_iso_date · function · L189-L196 — def valid_iso_date(value: Any) -> bool
- Review · class · L199-L417 — class Review
- init · method · L202-L203 — def init(self) -> None
- add · method · L205-L212 — def add( self, code: str, path: str, message: str, severity: str = "gap", ) -> None
- object · method · L214-L218 — def object(self, value: Any, path: str) -> dict[str, Any] | None
- list · method · L220-L236 — def list( self, value: Any, path: str, *, min_items: int = 1, max_items: int = MAX_ITEMS, ) -> list[Any] | None
- text · method · L238-L258 — def text( self, obj: dict[str, Any], key: str, path: str, *, max_chars: int = 500, ) -> str | None
- choice · method · L260-L276 — def choice( self, obj: dict[str, Any], key: str, allowed: set[str], path: str, ) -> str | None
- date · method · L278-L293 — def date( self, obj: dict[str, Any], key: str, path: str, *, required: bool = True, ) -> str | None
- unique_ids · method · L295-L315 — def unique_ids( self, rows: Iterable[Any], path: str, *, key: str = "id", ) -> None
- evidence · method · L317-L339 — def evidence( self, obj: dict[str, Any], path: str, *, min_items: int = 1, ) -> list[dict[str, Any]]
- approval · method · L341-L367 — def approval( self, obj: dict[str, Any], path: str, *, require_approved: bool, ) -> dict[str, Any] | None
- source_refs · method · L369-L402 — def source_refs( self, obj: dict[str, Any], path: str, *, min_items: int = 1, ) -> list[dict[str, Any]]
- controlled_item · method · L404-L417 — def controlled_item( self, obj: dict[str, Any], path: str, *, require_approved: bool = True, require_sources: bool = True, ) -> None
- standard_parser · function · L420-L456 — def standard_parser( description: str, input_help: str, *, with_standard: bool = False, ) -> argparse.ArgumentParser
- profile_for · function · L459-L466 — def profile_for(args: argparse.Namespace) -> StandardProfile
- build_report · function · L469-L491 — def build_report( tool: str, findings: Iterable[Finding], *, metrics: dict[str, Any] | None = None, basis: str = "2026-07-26", standard: str | None = None, ) -> dict[str, Any]
- emit_report · function · L494-L526 — def emit_report( report: dict[str, Any], output: str | None, *, force: bool, compact: bool, ) -> None
- finish · function · L529-L549 — def finish( tool: str, review: Review, args: argparse.Namespace, *, metrics: dict[str, Any] | None = None, standard: str | None = None, ) -> int
- guarded_main · function · L552-L558 — def guarded_main(main_function: Any) -> None