mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
refact: enable ruff preview rules
This commit is contained in:
@@ -224,7 +224,7 @@ class PreferDoubleQuotesRule(FormatterRule):
|
||||
raw = new_lines[start_line]
|
||||
# apply shift so we match against current edited line
|
||||
idx = starting_col_offset + shift
|
||||
if idx >= len(raw) or raw[idx] not in ("'", "r", "u", "b", "f", "R", "U", "B", "F"):
|
||||
if idx >= len(raw) or raw[idx] not in {"'", "r", "u", "b", "f", "R", "U", "B", "F"}:
|
||||
continue
|
||||
|
||||
# match literal at that column
|
||||
|
||||
Reference in New Issue
Block a user