← Về thư mục
skills/uncertainty-and-units/scripts/audit_units.py
- significant_digits · function · L134-L142 — def significant_digits(value: float) -> int
- parse_suppressions · function · L145-L176 — def parse_suppressions(source: str) -> tuple[dict[int, set[str]], set[str]]
- _tokens · function · L179-L193 — def _tokens(text: str) -> set[str]
- Auditor · class · L196-L438 — class Auditor(ast.NodeVisitor)
- init · method · L199-L207 — def init(self, source: str, filename: str) -> None
- report · method · L209-L226 — def report( self, node: ast.AST, rule: str, severity: str, message: str, remedy: str, ) -> None
- visit_Import · method · L230-L234 — def visit_Import(self, node: ast.Import) -> None
- visit_ImportFrom · method · L236-L239 — def visit_ImportFrom(self, node: ast.ImportFrom) -> None
- visit_Constant · method · L243-L270 — def visit_Constant(self, node: ast.Constant) -> None
- _check_constant_literal · method · L272-L289 — def _check_constant_literal(self, node: ast.Constant, value: float) -> None
- visit_Attribute · method · L293-L312 — def visit_Attribute(self, node: ast.Attribute) -> None
- visit_Call · method · L316-L381 — def visit_Call(self, node: ast.Call) -> None
- _call_name · method · L384-L389 — def _call_name(node: ast.Call) -> str | None
- _call_module · method · L392-L395 — def _call_module(node: ast.Call) -> str | None
- _is_numpy_call · method · L398-L403 — def _is_numpy_call(node: ast.Call) -> bool
- finish · method · L405-L428 — def finish(self) -> list[dict[str, Any]]
- _suppressed · method · L430-L438 — def _suppressed(self, finding: dict[str, Any]) -> bool
- audit_source · function · L441-L451 — def audit_source(source: str, filename: str) -> dict[str, Any]
- render_markdown · function · L454-L482 — def render_markdown(document: dict[str, Any]) -> str
- build_parser · function · L485-L510 — def build_parser() -> argparse.ArgumentParser
- run · function · L513-L538 — def run(arguments: argparse.Namespace) -> dict[str, Any]
- exit_code · function · L541-L551 — def exit_code(document: dict[str, Any], fail_on: str) -> int
- main · function · L554-L571 — def main(argv: list[str] | None = None) -> int