Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent b91678c commit 4f26da0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/hades/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"ENEMY_GENERATION_DISTANCE",
"ENEMY_RETRY_COUNT",
"GAME_LOGGER",
"GameObjectType",
"INDICATOR_BAR_BORDER_SIZE",
"INDICATOR_BAR_DISTANCE",
"INDICATOR_BAR_HEIGHT",
Expand All @@ -32,6 +31,7 @@
"MAX_VELOCITY",
"TOTAL_ENEMY_COUNT",
"USABLE_TYPES",
"GameObjectType",
)


Expand Down
2 changes: 1 addition & 1 deletion src/hades/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
9 changes: 3 additions & 6 deletions tests/test_sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
== "<HadesSprite (Game object ID=0) (Current texture=<Texture"
repr(sprite) == "<HadesSprite (Game object ID=0) (Current texture=<Texture"
" cache_name=b3d8c789f0ab79a64f6ee6c8eac8fc329b53a3a56ed6c0ee262522cefef5dcf4|("
"0, 1, 2, 3)|SimpleHitBoxAlgorithm|>)>"
)
Expand Down Expand Up @@ -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)
== "<AnimatedSprite (Game object ID=0) (Current texture=<Texture"
repr(sprite) == "<AnimatedSprite (Game object ID=0) (Current texture=<Texture"
" cache_name=b3d8c789f0ab79a64f6ee6c8eac8fc329b53a3a56ed6c0ee262522cefef5dcf4|("
"0, 1, 2, 3)|SimpleHitBoxAlgorithm|>)>"
)
Expand All @@ -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)
== "<AnimatedSprite (Game object ID=1) (Current texture=<Texture"
repr(sprite) == "<AnimatedSprite (Game object ID=1) (Current texture=<Texture"
" cache_name=6c519a52622fb21c14df6fddfe3541a38344e258ade26b2f02505bb216f73b32|("
"0, 1, 2, 3)|SimpleHitBoxAlgorithm|>)>"
)

0 comments on commit 4f26da0

Please sign in to comment.