mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
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:
8 files changed
+21
-24
No files matched your search
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user