Skip to content

Commit f187e9c

Browse files
committed
Update pre-commit
1 parent 82d3582 commit f187e9c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: fix-byte-order-marker
1818
- id: detect-private-key
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.5.2
20+
rev: v0.5.6
2121
hooks:
2222
- id: ruff
2323
args: [--fix-only, --exit-non-zero-on-fix]

tcod/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def __deprecate_defaults( # noqa: C901, PLR0912
519519
stacklevel=3,
520520
)
521521

522-
def print_( # noqa: PLR0913
522+
def print_(
523523
self,
524524
x: int,
525525
y: int,
@@ -596,7 +596,7 @@ def print_rect( # noqa: PLR0913
596596
)
597597
)
598598

599-
def get_height_rect(self, x: int, y: int, width: int, height: int, string: str) -> int: # noqa: PLR0913
599+
def get_height_rect(self, x: int, y: int, width: int, height: int, string: str) -> int:
600600
"""Return the height of this text word-wrapped into this rectangle.
601601
602602
Args:

tcod/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __exit__(self, *_: object) -> None:
181181
"""Automatically close on the context on exit."""
182182
self.close()
183183

184-
def present( # noqa: PLR0913
184+
def present(
185185
self,
186186
console: tcod.console.Console,
187187
*,

tcod/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def fov(self) -> NDArray[np.bool_]:
115115
buffer: np.ndarray[Any, np.dtype[np.bool_]] = self.__buffer[:, :, 2]
116116
return buffer.T if self._order == "F" else buffer
117117

118-
def compute_fov( # noqa: PLR0913
118+
def compute_fov(
119119
self,
120120
x: int,
121121
y: int,

tcod/sdl/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def draw_lines(self, points: NDArray[np.intc | np.float32]) -> None:
655655
raise TypeError(msg)
656656

657657
@_required_version((2, 0, 18))
658-
def geometry( # noqa: PLR0913
658+
def geometry(
659659
self,
660660
texture: Texture | None,
661661
xy: NDArray[np.float32],

0 commit comments

Comments
 (0)