Skip to content

Commit bebbb9a

Browse files
committed
Resolve Ruff warnings and add spelling
1 parent 3131edb commit bebbb9a

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"addy",
2727
"algo",
2828
"ALPH",
29+
"alsa",
2930
"ALTERASE",
3031
"arange",
3132
"ARCHS",
@@ -115,6 +116,7 @@
115116
"DBLAMPERSAND",
116117
"DBLAPOSTROPHE",
117118
"DBLVERTICALBAR",
119+
"dbus",
118120
"dcost",
119121
"DCROSS",
120122
"DECIMALSEPARATOR",
@@ -190,6 +192,7 @@
190192
"htmlhelp",
191193
"htmlzip",
192194
"IBEAM",
195+
"ibus",
193196
"ifdef",
194197
"ifndef",
195198
"iinfo",
@@ -255,9 +258,13 @@
255258
"letterpaper",
256259
"LGUI",
257260
"LHYPER",
261+
"libdrm",
262+
"libgbm",
258263
"libsdl",
259264
"libtcod",
260265
"libtcodpy",
266+
"libusb",
267+
"libxkbcommon",
261268
"linspace",
262269
"liskin",
263270
"LMASK",
@@ -347,6 +354,7 @@
347354
"printn",
348355
"PRINTSCREEN",
349356
"propname",
357+
"pulseaudio",
350358
"pushdown",
351359
"pycall",
352360
"pycparser",
@@ -397,6 +405,7 @@
397405
"scancodes",
398406
"scipy",
399407
"scoef",
408+
"Scrn",
400409
"SCROLLLOCK",
401410
"sdist",
402411
"SDL's",
@@ -498,7 +507,11 @@
498507
"windowshown",
499508
"windowsizechanged",
500509
"windowtakefocus",
510+
"Xcursor",
501511
"xdst",
512+
"Xext",
513+
"Xfixes",
514+
"Xrandr",
502515
"xrel",
503516
"xvfb",
504517
"ydst",

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Sphinx config file."""
1+
"""Sphinx config file.""" # noqa: INP001
22
# tdl documentation build configuration file, created by
33
# sphinx-quickstart on Fri Nov 25 12:49:46 2016.
44
#
@@ -65,7 +65,7 @@
6565

6666
# General information about the project.
6767
project = "python-tcod"
68-
copyright = "2009-2025, Kyle Benesch"
68+
copyright = "2009-2025, Kyle Benesch" # noqa: A001
6969
author = "Kyle Benesch"
7070

7171
# The version info for the project you're documenting, acts as replacement for

scripts/generate_charmap_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import argparse
1010
import unicodedata
11-
from collections.abc import Iterable, Iterator
11+
from collections.abc import Iterable, Iterator # noqa: TC003
1212

1313
from tabulate import tabulate
1414

scripts/tag_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def parse_changelog(args: argparse.Namespace) -> tuple[str, str]:
4545
return f"{header}{tagged}{tail}", changes
4646

4747

48-
def replace_unreleased_tags(tag: str, dry_run: bool) -> None:
48+
def replace_unreleased_tags(tag: str, *, dry_run: bool) -> None:
4949
"""Walk though sources and replace pending tags with the new tag."""
5050
match = re.match(r"\d+\.\d+", tag)
5151
assert match
@@ -77,7 +77,7 @@ def main() -> None:
7777
print("--- New changelog:")
7878
print(new_changelog)
7979

80-
replace_unreleased_tags(args.tag, args.dry_run)
80+
replace_unreleased_tags(args.tag, dry_run=args.dry_run)
8181

8282
if not args.dry_run:
8383
(PROJECT_DIR / "CHANGELOG.md").write_text(new_changelog, encoding="utf-8")

0 commit comments

Comments
 (0)