build: replace black and isort with ruff

ruff format keeps black's style at the same line length, and ruff
check covers import sorting plus pycodestyle and pyflakes. Three
comments and a test regex are wrapped to fit 79 columns.
This commit is contained in:
Dash committed 2026-10-17 15:55:51 +02:00
1 parent 9c44d69633
commit 4d620bc384
8 files changed
+21 -24

No files matched your search

+2 -1
View File
@@ -129,7 +129,8 @@ def test_impressive_guy_formats() -> None:
titles = "|".join(re.escape(title) for title in data.impressive_titles)
races = "|".join(re.escape(plural(race.name)) for race in data.races)
pattern = re.compile(
rf"the ({titles}) of the ({races})|({titles}) [A-Z][a-z]+ of [A-Z][a-z]+"
rf"the ({titles}) of the ({races})"
rf"|({titles}) [A-Z][a-z]+ of [A-Z][a-z]+"
)
random.seed("guys")
guys = [impressive_guy(data) for _ in range(200)]