Skip to content

Commit 8d39cbc

Browse files
committed
Update Ruff version, solves SIM118
1 parent 3d5f52c commit 8d39cbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ repos:
1515
- id: fix-byte-order-marker
1616
- id: detect-private-key
1717
- repo: https://github.com/psf/black
18-
rev: 23.3.0
18+
rev: 23.7.0
1919
hooks:
2020
- id: black
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.0.270
22+
rev: v0.0.282
2323
hooks:
2424
- id: ruff
2525
args: [--fix, --exit-non-zero-on-fix]

tcod/ecs/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def __delitem__(self, key: ComponentKey[object]) -> None:
778778

779779
def __contains__(self, key: object) -> bool:
780780
"""Return True if this entity contains a relation component for this component key."""
781-
return key in self.keys() # noqa: SIM118 # https://github.com/astral-sh/ruff/issues/6163
781+
return key in self.keys()
782782

783783
def clear(self) -> None:
784784
"""Clears the relation components this entity has with other entities.

0 commit comments

Comments
 (0)