Load standards from cache file.
()
| 414 | |
| 415 | |
| 416 | def _load_from_cache() -> list[dict]: |
| 417 | """Load standards from cache file.""" |
| 418 | raw_file = CACHE_DIR / "parsed_standards.json" |
| 419 | if raw_file.exists(): |
| 420 | with open(raw_file, "r", encoding="utf-8") as f: |
| 421 | data = json.load(f) |
| 422 | standards = data["standards"] |
| 423 | print(f" Loaded {len(standards)} standards from cache") |
| 424 | return standards |
| 425 | print("ERROR: No standards data. Run with --fetch first.") |
| 426 | return [] |
| 427 | |
| 428 | |
| 429 | def show_diff(standards: list[dict]): |
no outgoing calls
no test coverage detected