mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 16:43:05 +02:00
Enable E741: rename ambiguous variable l to line
This commit is contained in:
parent
84b80863d6
commit
5a24296c8e
@ -13,7 +13,7 @@ SCRIPT = ROOT / "main.py"
|
||||
|
||||
def read_lines(p: Path):
|
||||
"""Read lines from a file, stripping newlines."""
|
||||
return [l.rstrip("\n") for l in p.read_text(encoding="utf-8").splitlines()]
|
||||
return [line.rstrip("\n") for line in p.read_text(encoding="utf-8").splitlines()]
|
||||
|
||||
|
||||
def test_extract_hosts_function():
|
||||
|
||||
@ -66,7 +66,6 @@ ignore = [
|
||||
"S110", # try-except-pass - common pattern in scripts
|
||||
"S112", # try-except-continue - acceptable pattern
|
||||
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
||||
"E741", # ambiguous-variable-name - sometimes intentional (e.g. l for list)
|
||||
"DTZ004", # datetime.utcfromtimestamp - acceptable
|
||||
"PERF401", # manual-list-comprehension - style preference
|
||||
"RUF005", # collection-literal-concatenation - style preference
|
||||
|
||||
Loading…
Reference in New Issue
Block a user