Skip to content

Commit 87fa66e

Browse files
drvinceknightczemtsop
authored andcommitted
Run black on all files (#1368)
* Add check to config.yml * Install black before trying to use it. * Move black installation This is just to avoid installing in case the CI fails beforehand. * Run black * Additional documentation on running black * Revert "Run black" This reverts commit c50a6e3. * Remove unnecessary installs. * Revert "Revert "Run black"" This reverts commit 10ab222. * Run isort. * Make black and isort compatible. Co-authored-by: T.J. Gaffney <gaffney.tj@gmail.com> Rebase with main Rebase with master
1 parent 2c61618 commit 87fa66e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

axelrod/tests/strategies/test_finite_state_machines.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,7 @@ def test_strategy(self):
452452
(5, D),
453453
(3, C),
454454
(5, C),
455-
] + [
456-
(7, C),
457-
(8, D),
458-
(6, C),
459-
] * 5
455+
] + [(7, C), (8, D), (6, C),] * 5
460456
self.transitions_test(state_and_actions)
461457

462458
state_and_actions = (

axelrod/tests/strategies/test_gambler.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,7 @@ class TestEvolvableGambler4(TestEvolvablePlayer):
598598
init_parameters = {
599599
"parameters": (2, 2, 2),
600600
"pattern": [random.random() for _ in range(64)],
601-
"initial_actions": (
602-
C,
603-
C,
604-
),
601+
"initial_actions": (C, C,),
605602
}
606603

607604

@@ -610,10 +607,7 @@ class TestEvolvableGambler4(TestEvolvablePlayer):
610607
axl.EvolvableGambler,
611608
pattern=tables[("PSO Gambler 2_2_2", 2, 2, 2)],
612609
parameters=(2, 2, 2),
613-
initial_actions=(
614-
C,
615-
C,
616-
),
610+
initial_actions=(C, C,),
617611
)
618612

619613

axelrod/tests/strategies/test_meta.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ def test_strategy(self):
504504
opponent=axl.Alternator(), expected_actions=actions, seed=1
505505
)
506506

507+
507508
class TestMetaWinnerLongMemory(TestMetaPlayer):
508509
name = "Meta Winner Long Memory"
509510
player = axl.MetaWinnerLongMemory
@@ -523,6 +524,7 @@ def test_strategy(self):
523524
opponent=axl.Alternator(), expected_actions=actions, seed=4
524525
)
525526

527+
526528
class TestMetaWinnerDeterministic(TestMetaPlayer):
527529
name = "Meta Winner Deterministic"
528530
player = axl.MetaWinnerDeterministic
@@ -560,6 +562,7 @@ def test_strategy(self):
560562
opponent=axl.Alternator(), expected_actions=actions, seed=1
561563
)
562564

565+
563566
class TestMetaMixer(TestMetaPlayer):
564567
name = "Meta Mixer"
565568
player = axl.MetaMixer

0 commit comments

Comments
 (0)