fix(lint): explicit encoding on probe-file open in UE harness (PLW1514 + windows-footguns)

This commit is contained in:
teknium1 2026-07-18 12:32:32 -07:00 committed by Teknium
parent bc36ff7083
commit 72324eacbe
No known key found for this signature in database

View file

@ -54,7 +54,8 @@ def _mock_result(tool_name: str) -> str:
def load_epic_tools(scale: str) -> List[Dict[str, Any]]:
raw = json.load(open(PROBE))
with open(PROBE, encoding="utf-8") as f:
raw = json.load(f)
out = []
for ts_name, ts in raw["toolsets"].items():
if not isinstance(ts, dict) or not ts.get("tools"):