Load cached baselines.json if it exists.
()
| 106 | |
| 107 | |
| 108 | def load_baselines() -> dict | None: |
| 109 | """Load cached baselines.json if it exists.""" |
| 110 | if not os.path.exists(BASELINES_PATH): |
| 111 | return None |
| 112 | with open(BASELINES_PATH, "r") as f: |
| 113 | return json.load(f) |
| 114 | |
| 115 | |
| 116 | # --------------------------------------------------------------------------- |