diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d86ddee..977684e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -17,7 +17,7 @@ repos: - id: fix-byte-order-marker - id: detect-private-key - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.6 + rev: v0.8.6 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tcod/ecs/entity.py b/tcod/ecs/entity.py index 75ba3c4..9630c2c 100644 --- a/tcod/ecs/entity.py +++ b/tcod/ecs/entity.py @@ -66,7 +66,7 @@ class Entity: >>> other_entity = registry["other"] """ # Changes here should be reflected in conftest.py - __slots__ = ("registry", "uid", "__weakref__") + __slots__ = ("__weakref__", "registry", "uid") registry: Final[Registry] # type:ignore[misc] # https://github.com/python/mypy/issues/5774 """The :any:`Registry` this entity belongs to."""