Skip to content

Commit

Permalink
Update lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaoyi committed Jan 10, 2025
1 parent dfcdd48 commit 19c4470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/exercise_coding.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pre_generated_steps": [],

"pre_generated_answer": "",
"pre_generated_verifier_score": 1
"pre_generated_verifier_score": 1.0

},

Expand Down
1 change: 1 addition & 0 deletions data/format_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def check_structure(data, expected):
return False
for key, value_type in expected.items():
if key not in data or not check_structure(data[key], value_type):
print(f"Key {key} not found in data or does not match expected type {value_type}")
return False
elif isinstance(expected, list):
if not isinstance(data, list):
Expand Down

0 comments on commit 19c4470

Please sign in to comment.