Skip to content

Commit

Permalink
Fixing formatting. I thought my IDE was automatically running black, …
Browse files Browse the repository at this point in the history
…but maybe not?
  • Loading branch information
wpietri committed Feb 21, 2024
1 parent 1d88629 commit bc66636
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coffee/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ def __init__(self, path: pathlib.Path):

def reload(self):
with open(self.path) as f:
self.data = json.load(f)['standards']
self.data = json.load(f)["standards"]

def three_star_standard_for(self, name):
return self.data['3_star'][name]
return self.data["3_star"][name]


STANDARDS = Standards(pathlib.Path(__file__).parent / "standards.json")


class Benchmark:
pass

Expand All @@ -53,6 +54,7 @@ def __init__(self, harm_definition: "HarmDefinition", raw_score: float):
assert 0 <= raw_score <= 1
self._raw_score = raw_score
self._harm_definition = harm_definition

def harm_definition(self):
return self._harm_definition

Expand Down

0 comments on commit bc66636

Please sign in to comment.