From 54a978b4e2e834b633564023a0e02adf465fd776 Mon Sep 17 00:00:00 2001 From: Joe R Date: Tue, 11 Feb 2025 21:56:10 -0500 Subject: [PATCH] Fix flake8 --- pysollib/games/special/dashavatara.py | 8 +++++--- pysollib/games/special/hexadeck.py | 3 ++- pysollib/games/special/mughal.py | 6 ++++-- pysollib/games/special/tarock1.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/pysollib/games/special/dashavatara.py b/pysollib/games/special/dashavatara.py index 715a8967..be062dbe 100644 --- a/pysollib/games/special/dashavatara.py +++ b/pysollib/games/special/dashavatara.py @@ -1266,10 +1266,12 @@ class Dashavatara(Game): # * # ***********************************************************************/ -def r(id, gameclass, name, game_type, decks, redeals, skill_level, altnames=()): +def r(id, gameclass, name, game_type, decks, redeals, skill_level, + altnames=()): game_type = game_type | GI.GT_DASHAVATARA_GANJIFA gi = GameInfo(id, gameclass, name, game_type, decks, redeals, skill_level, - suits=list(range(10)), ranks=list(range(12)), altnames=altnames) + suits=list(range(10)), ranks=list(range(12)), + altnames=altnames) registerGame(gi) return gi @@ -1301,6 +1303,6 @@ r(15420, AppachansWaterfall, "Appachan's Waterfall", GI.GT_DASHAVATARA_GANJIFA, r(15421, Hiranyaksha, 'Hiranyaksha', GI.GT_DASHAVATARA_GANJIFA, 1, 0, GI.SL_MOSTLY_SKILL) r(15422, Dashavatara, 'Dashavatara', GI.GT_DASHAVATARA_GANJIFA, 1, 0, - GI.SL_BALANCED, altnames=('Ten Avatars')) + GI.SL_BALANCED) del r diff --git a/pysollib/games/special/hexadeck.py b/pysollib/games/special/hexadeck.py index 23fdecc3..8e573dca 100644 --- a/pysollib/games/special/hexadeck.py +++ b/pysollib/games/special/hexadeck.py @@ -1605,7 +1605,8 @@ class MagicMontana(Montana): # ************************************************************************ -def r(id, gameclass, name, game_type, decks, redeals, skill_level, altnames=()): +def r(id, gameclass, name, game_type, decks, redeals, skill_level, + altnames=()): game_type = game_type | GI.GT_HEXADECK gi = GameInfo(id, gameclass, name, game_type, decks, redeals, skill_level, suits=list(range(4)), ranks=list(range(16)), diff --git a/pysollib/games/special/mughal.py b/pysollib/games/special/mughal.py index 58b1f047..f262dea2 100644 --- a/pysollib/games/special/mughal.py +++ b/pysollib/games/special/mughal.py @@ -1157,10 +1157,12 @@ class AshtaDikapala(Game): # * # ************************************************************************ -def r(id, gameclass, name, game_type, decks, redeals, skill_level, altnames=()): +def r(id, gameclass, name, game_type, decks, redeals, skill_level, + altnames=()): game_type = game_type | GI.GT_MUGHAL_GANJIFA gi = GameInfo(id, gameclass, name, game_type, decks, redeals, skill_level, - suits=list(range(8)), ranks=list(range(12)), altnames=altnames) + suits=list(range(8)), ranks=list(range(12)), + altnames=altnames) registerGame(gi) return gi diff --git a/pysollib/games/special/tarock1.py b/pysollib/games/special/tarock1.py index de8167f2..e7d8d0e6 100644 --- a/pysollib/games/special/tarock1.py +++ b/pysollib/games/special/tarock1.py @@ -504,8 +504,8 @@ def r(id, gameclass, name, game_type, decks, redeals, skill_level, numcards=78, altnames=()): game_type = game_type | GI.GT_TAROCK | GI.GT_CONTRIB | GI.GT_ORIGINAL gi = GameInfo(id, gameclass, name, game_type, decks, redeals, skill_level, - ranks=list(range(14)), trumps=list(range(22)), altnames=altnames, - si={"ncards": numcards}) + ranks=list(range(14)), trumps=list(range(22)), + altnames=altnames, si={"ncards": numcards}) registerGame(gi) return gi