This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -7,4 +7,4 @@ class GameConfig(AppConfig):
|
||||
verbose_name_plural = 'Games'
|
||||
|
||||
def ready(self):
|
||||
import game.signals # noqa
|
||||
pass
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user