tool functions and pytest

This commit is contained in:
2025-01-01 18:20:50 +01:00
parent 823f13ab51
commit fd7e3d5235
10 changed files with 406 additions and 108 deletions

11
utils.py Normal file
View File

@@ -0,0 +1,11 @@
import json
import sys
def load_json_file(filepath: str) -> any:
with open(filepath, "r") as f:
return json.load(f)
def print_error(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)