Skip to content

Commit

Permalink
Merge pull request #27 from geckon/build_fix_attempt
Browse files Browse the repository at this point in the history
Build fix
  • Loading branch information
geckon committed Dec 2, 2018
2 parents 6bdf504 + 926302a commit 88d0f9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ matrix:

# command to install dependencies
install:
- pip install -r requirements.txt
- make init

# command to run tests
script:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

init:
pip install -r requirements.txt
pip freeze

bandit:
bandit -r solitaire.py twnsol
Expand Down
6 changes: 6 additions & 0 deletions twnsol/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def game_over(self):
# Wait for exit
while True:
event = pygame.event.wait()
# pylint: disable=no-member
# (false positive; pygame has QUIT - see issue #26)
if event.type == pygame.QUIT:
exit()

Expand Down Expand Up @@ -338,6 +340,8 @@ def process_key(self, event):
Add the upcoming card to a respective column if the player made
a valid turn. In such case, return True, False otherwise.
"""
# pylint: disable=no-member
# (false positive; pygame has K_1, ..., K_4 - see issue #26)
if event.key == pygame.K_1:
logging.debug('Key 1 pressed.')
return self.add_next_to_col(0)
Expand All @@ -363,6 +367,8 @@ def loop(self):
while True:
self.draw_board()
event = pygame.event.wait()
# pylint: disable=no-member
# (false positive; pygame has QUIT, KEYDOWN - see issue #26)
if event.type == pygame.QUIT:
exit()

Expand Down

0 comments on commit 88d0f9c

Please sign in to comment.