Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffney2010 committed Nov 13, 2024
1 parent 9460cf1 commit bb0733b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion axelrod/match_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ def build_match_chunks(self) -> Iterator[MatchChunk]:
for index_pair in edges:
match_params = self.build_single_match_params()
r = next(self.random_generator)
yield MatchChunk(index_pair=index_pair, match_params=match_params, repetitions=self.repetitions, seed=r)
yield MatchChunk(
index_pair=index_pair,
match_params=match_params,
repetitions=self.repetitions,
seed=r,
)

def build_single_match_params(self):
"""
Expand Down
4 changes: 3 additions & 1 deletion axelrod/tests/unit/test_tournament.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ def make_chunk_generator():
for player2_index in range(player1_index, len(self.players)):
index_pair = (player1_index, player2_index)
match_params = {"turns": turns, "game": self.game}
yield MatchChunk(index_pair, match_params, self.test_repetitions, 0)
yield MatchChunk(
index_pair, match_params, self.test_repetitions, 0
)

chunk_generator = make_chunk_generator()
interactions = {}
Expand Down

0 comments on commit bb0733b

Please sign in to comment.