Skip to content

Commit

Permalink
refactor: pylint ignores too many and too few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed May 11, 2024
1 parent fac0980 commit a974547
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
FILENAME = expanduser("~/.config/snake-best-score.txt")


class DisplayableInterface:
class DisplayableInterface: # pylint: disable=too-few-public-methods
"""Specify a class with a display function"""

def display(self, stdscr: curses.window) -> None:
Expand Down Expand Up @@ -87,7 +87,7 @@ def __repr__(self) -> str:
class Snake(DisplayableInterface):
"""Represent a snake for the game"""

def __init__(
def __init__( # pylint: disable=too-many-arguments
self,
body_char: str,
head_char: str,
Expand Down Expand Up @@ -194,7 +194,7 @@ def display(self, stdscr: curses.window) -> None:
)


class Game:
class Game: # pylint: disable=too-many-instance-attributes
"""Runnable game object"""

_LONG_TEXT = "Controls: wasd or arrow keys, q to quit | Score: 0"
Expand All @@ -216,7 +216,7 @@ def _init_board(self) -> None:
self._bg_color,
)

def __init__(
def __init__( # pylint: disable=too-many-arguments
self,
stdscr: curses.window,
snake: Snake,
Expand Down

0 comments on commit a974547

Please sign in to comment.