← Về thư mục
skills/scientific-writing/scripts/_common.py
- InputError · class · L21-L22 — class InputError(ValueError)
- Issue · class · L26-L33 — class Issue
- to_dict · method · L32-L33 — def to_dict(self) -> dict[str, str]
- _checked_file · function · L36-L49 — def _checked_file(path_value: str | Path, suffixes: Iterable[str]) -> Path
- read_text · function · L52-L57 — def read_text(path_value: str | Path, suffixes: Iterable[str]) -> str
- _reject_duplicate_keys · function · L60-L66 — def _reject_duplicate_keys(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- _reject_nonfinite_json · function · L69-L70 — def _reject_nonfinite_json(_value: str) -> None
- _check_json_bounds · function · L73-L87 — def _check_json_bounds(value: Any, depth: int = 0) -> int
- read_json · function · L90-L101 — def read_json(path_value: str | Path) -> Any
- read_csv · function · L104-L123 — def read_csv(path_value: str | Path) -> tuple[list[str], list[dict[str, str]]]
- issue · function · L126-L135 — def issue( severity: str, code: str, *, location: str | None = None, item_id: str | None = None, ) -> Issue
- emit_report · function · L138-L166 — def emit_report( tool: str, issues: Iterable[Issue], *, summary: dict[str, Any] | None = None, ) -> int
- emit_input_error · function · L169-L173 — def emit_input_error(tool: str, exc: Exception) -> int
- require_object · function · L176-L179 — def require_object(value: Any, label: str = "root") -> dict[str, Any]
- require_list · function · L182-L187 — def require_list(value: Any, label: str) -> list[Any]
- is_nonempty_string · function · L190-L191 — def is_nonempty_string(value: Any) -> bool
- is_placeholder · function · L194-L202 — def is_placeholder(value: Any) -> bool
- write_new_text · function · L205-L224 — def write_new_text( path_value: str | Path, content: str, suffixes: Iterable[str] ) -> Path
- main_guard · function · L227-L231 — def main_guard(tool: str, callback: Any) -> int
- run · function · L234-L235 — def run(tool: str, callback: Any) -> None