diff --git a/app/settings.py b/app/settings.py index 483f268..535e3ba 100644 --- a/app/settings.py +++ b/app/settings.py @@ -7,8 +7,6 @@ from .utils import get_op_config op_config = get_op_config() -print(op_config) - SCOPE = op_config['settings.SCOPE'] sentry_sdk.init( diff --git a/game/apps.py b/game/apps.py index 38d581b..a3ec9a7 100644 --- a/game/apps.py +++ b/game/apps.py @@ -7,4 +7,4 @@ class GameConfig(AppConfig): verbose_name_plural = 'Games' def ready(self): - import game.signals # noqa + pass diff --git a/game/game.py b/game/game.py index 1f81687..039b6d8 100644 --- a/game/game.py +++ b/game/game.py @@ -88,9 +88,7 @@ class Minesweeper: def is_point_in_board(self, row, col): """Checks whether the location is inside board""" - if row in range(self.rows) and col in range(self.cols): - return True - return False + return row in range(self.rows) and col in range(self.cols) def increment_safe_point(self, row, col): """Creates the mine's pontuation frame""" @@ -153,5 +151,4 @@ class Minesweeper: if cell == '-': unrevealed += 1 - if (unrevealed - self.mines) == 0: - return True + return (unrevealed - self.mines) == 0 diff --git a/pyproject.toml b/pyproject.toml index f62efb3..fea9d8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,11 @@ lint.ignore = [ "Q002", "Q003", "W191", + "ARG001", + "SIM201", + "RUF012", + "N806", + "ARG002", "N805", # Missing type annotation for self in method (Pydantic don't like this) "SIM108", # Use ternary operator {contents} instead of if-else-block "RUF009", # Missing dataclass field.