Enable E741: rename ambiguous variable l to line

This commit is contained in:
Krzysztof kuhy Rudnicki 2025-11-30 15:13:04 +01:00
parent 84b80863d6
commit 5a24296c8e
2 changed files with 1 additions and 2 deletions

View File

@ -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():

View File

@ -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