From a974547fdc5ab29c7c0e985e0f1910ed91178076 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Sat, 11 May 2024 11:59:14 -0500 Subject: [PATCH] refactor: pylint ignores too many and too few warnings --- snake.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snake.py b/snake.py index 7622201..3403dad 100755 --- a/snake.py +++ b/snake.py @@ -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: @@ -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, @@ -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" @@ -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,