Skip to content

Commit

Permalink
More changes for black.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpietri committed Feb 21, 2024
1 parent 5e9bd67 commit 644a977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/coffee/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ def update_standards_to(file):
"platform": platform.platform(),
"system": f"{platform.system()} {platform.release()} {platform.version()}",
"node": platform.node(),
"python": platform.python_version()
"python": platform.python_version(),
},
},
"standards": {
"reference_sut": {"name": reference_sut.display_name, "id": reference_sut.key},
"3_star": {harm.__class__.name(): harm_scores[harm].value() for harm in harm_scores.keys()}
"3_star": {harm.__class__.name(): harm_scores[harm].value() for harm in harm_scores.keys()},
},
}
with open(file, "w") as out:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def test_update_standards(fake_run, tmp_path):
with open(new_path) as f:
j = json.load(f)
assert j["standards"]["3_star"][bias_harm.name()] == 0.123456
assert j["standards"]["reference_sut"]["id"] == 'gpt2'
assert j["standards"]["reference_sut"]["id"] == "gpt2"

0 comments on commit 644a977

Please sign in to comment.