diff --git a/squirrelbattle/game.py b/squirrelbattle/game.py index ce5ce53..6b8bc0f 100644 --- a/squirrelbattle/game.py +++ b/squirrelbattle/game.py @@ -420,7 +420,7 @@ class Game: except KeyError as error: self.message = _("Some keys are missing in your save file.\n" "Your save seems to be corrupt. It got deleted.")\ - + f"\n{error}" + + f"\n{error}" os.unlink(ResourceManager.get_config_path("save.json")) self.display_actions(DisplayActions.UPDATE) return diff --git a/squirrelbattle/interfaces.py b/squirrelbattle/interfaces.py index b6a472c..a17ab45 100644 --- a/squirrelbattle/interfaces.py +++ b/squirrelbattle/interfaces.py @@ -7,7 +7,7 @@ from functools import reduce from itertools import product from math import ceil, sqrt from queue import PriorityQueue -from random import choice, choices, randint +from random import choice, randint from typing import Any, Dict, List, Optional, Tuple from .display.texturepack import TexturePack diff --git a/squirrelbattle/mapgeneration/broguelike.py b/squirrelbattle/mapgeneration/broguelike.py index d192d3c..8ae6582 100644 --- a/squirrelbattle/mapgeneration/broguelike.py +++ b/squirrelbattle/mapgeneration/broguelike.py @@ -1,10 +1,10 @@ # Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse # SPDX-License-Identifier: GPL-3.0-or-later -from random import random, randint, shuffle, choice, choices +from random import choice, choices, randint, random, shuffle from typing import List, Tuple -from ..interfaces import Map, Tile, Entity +from ..interfaces import Entity, Map, Tile DEFAULT_PARAMS = { "width": 120, diff --git a/squirrelbattle/tests/mapgeneration_test.py b/squirrelbattle/tests/mapgeneration_test.py index 141864d..d840b69 100644 --- a/squirrelbattle/tests/mapgeneration_test.py +++ b/squirrelbattle/tests/mapgeneration_test.py @@ -1,13 +1,13 @@ # Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse # SPDX-License-Identifier: GPL-3.0-or-later -import unittest from random import randint from typing import List +import unittest -from squirrelbattle.interfaces import Map, Tile -from squirrelbattle.mapgeneration import broguelike -from squirrelbattle.display.texturepack import TexturePack +from ..display.texturepack import TexturePack +from ..interfaces import Map, Tile +from ..mapgeneration import broguelike class TestBroguelike(unittest.TestCase):