Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
boldandbrad committed Feb 19, 2024
1 parent 56690b6 commit a023c34
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
11 changes: 6 additions & 5 deletions src/euchre/abstract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from .suit import Suit
from .face import Face
from .card import Card

from .team import Team
from .player import Player
from .computer import Computer
from .face import Face
from .human import Human
from .player import Player
from .suit import Suit
from .team import Team

__all__ = (Suit, Face, Card, Team, Player, Computer, Human)
18 changes: 15 additions & 3 deletions src/euchre/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
from .output_util import output
from .card_util import create_deck, deal_hand
from .player_util import unique_cpu_name, rotate_dealer, rotate_trick_order
from .rule_util import valid_play, hand_winner, trick_winner
from .output_util import output
from .player_util import rotate_dealer, rotate_trick_order, unique_cpu_name
from .rule_util import hand_winner, trick_winner, valid_play

__all__ = (
output,
create_deck,
deal_hand,
unique_cpu_name,
rotate_dealer,
rotate_trick_order,
valid_play,
hand_winner,
trick_winner,
)
6 changes: 3 additions & 3 deletions tests/util/test_card_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ def test_create_deck():

# check that deck is a standard euchre deck
for card in deck:
assert card.face.name in ["Nine", "Ten", "Jack", "Queen", "King", "Ace"]
assert card.face.name in ("Nine", "Ten", "Jack", "Queen", "King", "Ace")
assert card.face.value >= 9 and card.face.value <= 14
assert card.suit.name in ["Spade", "Club", "Diamond", "Heart"]
assert card.suit.color in ["Black", "Red"]
assert card.suit.name in ("Spade", "Club", "Diamond", "Heart")
assert card.suit.color in ("Black", "Red")

# check that there are no duplicate cards
assert len(deck) == len(set(deck))
Expand Down

0 comments on commit a023c34

Please sign in to comment.