Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Aug 7, 2024
1 parent 82d3582 commit f187e9c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.2
rev: v0.5.6
hooks:
- id: ruff
args: [--fix-only, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions tcod/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def __deprecate_defaults( # noqa: C901, PLR0912
stacklevel=3,
)

def print_( # noqa: PLR0913
def print_(
self,
x: int,
y: int,
Expand Down Expand Up @@ -596,7 +596,7 @@ def print_rect( # noqa: PLR0913
)
)

def get_height_rect(self, x: int, y: int, width: int, height: int, string: str) -> int: # noqa: PLR0913
def get_height_rect(self, x: int, y: int, width: int, height: int, string: str) -> int:
"""Return the height of this text word-wrapped into this rectangle.
Args:
Expand Down
2 changes: 1 addition & 1 deletion tcod/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __exit__(self, *_: object) -> None:
"""Automatically close on the context on exit."""
self.close()

def present( # noqa: PLR0913
def present(
self,
console: tcod.console.Console,
*,
Expand Down
2 changes: 1 addition & 1 deletion tcod/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def fov(self) -> NDArray[np.bool_]:
buffer: np.ndarray[Any, np.dtype[np.bool_]] = self.__buffer[:, :, 2]
return buffer.T if self._order == "F" else buffer

def compute_fov( # noqa: PLR0913
def compute_fov(
self,
x: int,
y: int,
Expand Down
2 changes: 1 addition & 1 deletion tcod/sdl/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def draw_lines(self, points: NDArray[np.intc | np.float32]) -> None:
raise TypeError(msg)

@_required_version((2, 0, 18))
def geometry( # noqa: PLR0913
def geometry(
self,
texture: Texture | None,
xy: NDArray[np.float32],
Expand Down

0 comments on commit f187e9c

Please sign in to comment.