Fix pylint issues

This commit is contained in:
Melissa LeBlanc-Williams 2025-05-29 14:43:32 -07:00
parent d1c09dcd61
commit 08dc8367c5
2 changed files with 12 additions and 3 deletions

View file

@ -142,7 +142,14 @@ ui_group = Group()
main_group.append(ui_group) main_group.append(ui_group)
# Create the game logic object # Create the game logic object
game_logic = GameLogic(display, game_grid, swap_piece, selected_piece_group, GAME_PIECES) # pylint: disable=no-value-for-parameter # pylint: disable=no-value-for-parameter, too-many-function-args
game_logic = GameLogic(
display,
game_grid,
swap_piece,
selected_piece_group,
GAME_PIECES
)
# Create the mouse graphics and add to the main group # Create the mouse graphics and add to the main group
mouse = find_and_init_boot_mouse("/bitmaps/mouse_cursor.bmp") mouse = find_and_init_boot_mouse("/bitmaps/mouse_cursor.bmp")

View file

@ -386,7 +386,8 @@ class GameLogic:
return True, len(all_matches) > 0 return True, len(all_matches) > 0
def check_horizontal_match(self, grid, row, column, piece): @staticmethod
def check_horizontal_match(grid, row, column, piece):
"""Check for horizontal 3-in-a-row matches centered """Check for horizontal 3-in-a-row matches centered
around or including the given position.""" around or including the given position."""
matches = [] matches = []
@ -404,7 +405,8 @@ class GameLogic:
return matches return matches
def check_vertical_match(self, grid, row, column, piece): @staticmethod
def check_vertical_match(grid, row, column, piece):
"""Check for vertical 3-in-a-row matches centered around or including the given position.""" """Check for vertical 3-in-a-row matches centered around or including the given position."""
matches = [] matches = []
rows = len(grid) rows = len(grid)