From 4f26da095e1e25029ce089e964a163c1b49b1ccb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:32:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/hades/constants.py | 2 +- src/hades/constructors.py | 2 +- tests/test_sprite.py | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/hades/constants.py b/src/hades/constants.py index d098a988..294de625 100644 --- a/src/hades/constants.py +++ b/src/hades/constants.py @@ -22,7 +22,6 @@ "ENEMY_GENERATION_DISTANCE", "ENEMY_RETRY_COUNT", "GAME_LOGGER", - "GameObjectType", "INDICATOR_BAR_BORDER_SIZE", "INDICATOR_BAR_DISTANCE", "INDICATOR_BAR_HEIGHT", @@ -32,6 +31,7 @@ "MAX_VELOCITY", "TOTAL_ENEMY_COUNT", "USABLE_TYPES", + "GameObjectType", ) diff --git a/src/hades/constructors.py b/src/hades/constructors.py index c5c83035..6e55fb4e 100644 --- a/src/hades/constructors.py +++ b/src/hades/constructors.py @@ -22,7 +22,7 @@ from hades_extensions.game_objects import ComponentBase -__all__ = ("ENEMY", "FLOOR", "GameObjectConstructor", "PLAYER", "POTION", "WALL") +__all__ = ("ENEMY", "FLOOR", "PLAYER", "POTION", "WALL", "GameObjectConstructor") class GameObjectConstructor(NamedTuple): diff --git a/tests/test_sprite.py b/tests/test_sprite.py index dbf036d6..28efa2f0 100644 --- a/tests/test_sprite.py +++ b/tests/test_sprite.py @@ -69,8 +69,7 @@ def test_hades_sprite_init() -> None: sprite = HadesSprite((0, GameObjectType.PLAYER), (10, 20), ["floor.png"]) assert sprite.position == (672.0, 1312.0) assert ( - repr(sprite) - == ")>" ) @@ -104,8 +103,7 @@ def test_animated_sprite_init() -> None: assert len(sprite.sprite_textures) == 1 assert len(sprite.sprite_textures[0]) == 2 assert ( - repr(sprite) - == ")>" ) @@ -122,8 +120,7 @@ def test_animated_sprite_multiple_textures() -> None: assert len(sprite.sprite_textures) == 2 assert len(sprite.sprite_textures[0]) == 2 assert ( - repr(sprite) - == ")>" )