This commit is contained in:
@@ -7,8 +7,6 @@ from .utils import get_op_config
|
|||||||
|
|
||||||
op_config = get_op_config()
|
op_config = get_op_config()
|
||||||
|
|
||||||
print(op_config)
|
|
||||||
|
|
||||||
SCOPE = op_config['settings.SCOPE']
|
SCOPE = op_config['settings.SCOPE']
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ class GameConfig(AppConfig):
|
|||||||
verbose_name_plural = 'Games'
|
verbose_name_plural = 'Games'
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
import game.signals # noqa
|
pass
|
||||||
|
|||||||
@@ -88,9 +88,7 @@ class Minesweeper:
|
|||||||
|
|
||||||
def is_point_in_board(self, row, col):
|
def is_point_in_board(self, row, col):
|
||||||
"""Checks whether the location is inside board"""
|
"""Checks whether the location is inside board"""
|
||||||
if row in range(self.rows) and col in range(self.cols):
|
return row in range(self.rows) and col in range(self.cols)
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def increment_safe_point(self, row, col):
|
def increment_safe_point(self, row, col):
|
||||||
"""Creates the mine's pontuation frame"""
|
"""Creates the mine's pontuation frame"""
|
||||||
@@ -153,5 +151,4 @@ class Minesweeper:
|
|||||||
|
|
||||||
if cell == '-':
|
if cell == '-':
|
||||||
unrevealed += 1
|
unrevealed += 1
|
||||||
if (unrevealed - self.mines) == 0:
|
return (unrevealed - self.mines) == 0
|
||||||
return True
|
|
||||||
|
|||||||
@@ -69,6 +69,11 @@ lint.ignore = [
|
|||||||
"Q002",
|
"Q002",
|
||||||
"Q003",
|
"Q003",
|
||||||
"W191",
|
"W191",
|
||||||
|
"ARG001",
|
||||||
|
"SIM201",
|
||||||
|
"RUF012",
|
||||||
|
"N806",
|
||||||
|
"ARG002",
|
||||||
"N805", # Missing type annotation for self in method (Pydantic don't like this)
|
"N805", # Missing type annotation for self in method (Pydantic don't like this)
|
||||||
"SIM108", # Use ternary operator {contents} instead of if-else-block
|
"SIM108", # Use ternary operator {contents} instead of if-else-block
|
||||||
"RUF009", # Missing dataclass field.
|
"RUF009", # Missing dataclass field.
|
||||||
|
|||||||
Reference in New Issue
Block a user