Skip to content

Commit 9f1d21f

Browse files
committed
pre-commit autoupdate and apply fixes
1 parent bcda919 commit 9f1d21f

6 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ 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.15.20
20+
rev: v0.16.10
2121
hooks:
2222
- id: ruff-check
2323
args: [--fix-only, --exit-non-zero-on-fix]
2424
- id: ruff-format
2525
- repo: https://github.com/zizmorcore/zizmor-pre-commit
26-
rev: v1.26.1
26+
rev: v1.30.1
2727
hooks:
2828
- id: zizmor

‎build_libtcod.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if TYPE_CHECKING:
3030
from collections.abc import Iterable, Iterator
3131

32-
Py_LIMITED_API: None | int = 0x03100000
32+
Py_LIMITED_API: int | None = 0x03100000
3333

3434
HEADER_PARSE_PATHS = ("tcod/", "libtcod/src/libtcod/")
3535
HEADER_PARSE_EXCLUDES = ("gl2_ext_.h", "renderer_gl_internal.h", "event.h")

‎tcod/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@
3636
"path",
3737
"random",
3838
"tileset",
39-
"tileset",
4039
]

‎tcod/noise.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__( # noqa: PLR0913
157157
self.implementation = implementation # sanity check
158158

159159
@staticmethod
160-
def __rng_from_seed(seed: None | int | tcod.random.Random) -> tcod.random.Random:
160+
def __rng_from_seed(seed: int | tcod.random.Random | None) -> tcod.random.Random:
161161
if seed is None or isinstance(seed, int):
162162
return tcod.random.Random(seed=seed, algorithm=tcod.random.MERSENNE_TWISTER)
163163
return seed

‎tcod/sdl/audio.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ def open( # noqa: A001, PLR0913
10191019
samples: int = 0, # noqa: ARG001
10201020
allowed_changes: AllowedChanges = AllowedChanges.NONE, # noqa: ARG001
10211021
paused: bool = False,
1022-
callback: None | Literal[True] | Callable[[AudioDevice, NDArray[Any]], None] = None,
1022+
callback: Literal[True] | Callable[[AudioDevice, NDArray[Any]], None] | None = None,
10231023
) -> AudioDevice:
10241024
"""Open an audio device for playback or capture and return it.
10251025

‎tcod/tcod.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,4 @@ def __getattr__(name: str, stacklevel: int = 1) -> Any: # noqa: ANN401
8686
"path",
8787
"random",
8888
"tileset",
89-
"tileset",
9089
]

0 commit comments

Comments
 (0)