mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-27 11:09:06 +01:00
Enable E741: rename ambiguous variable l to line
This commit is contained in:
parent
0fcaa07ab6
commit
732e6b56d6
@ -13,7 +13,7 @@ SCRIPT = ROOT / "main.py"
|
|||||||
|
|
||||||
def read_lines(p: Path):
|
def read_lines(p: Path):
|
||||||
"""Read lines from a file, stripping newlines."""
|
"""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():
|
def test_extract_hosts_function():
|
||||||
|
|||||||
@ -66,7 +66,6 @@ ignore = [
|
|||||||
"S110", # try-except-pass - common pattern in scripts
|
"S110", # try-except-pass - common pattern in scripts
|
||||||
"S112", # try-except-continue - acceptable pattern
|
"S112", # try-except-continue - acceptable pattern
|
||||||
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
||||||
"E741", # ambiguous-variable-name - sometimes intentional (e.g. l for list)
|
|
||||||
"DTZ004", # datetime.utcfromtimestamp - acceptable
|
"DTZ004", # datetime.utcfromtimestamp - acceptable
|
||||||
"PERF401", # manual-list-comprehension - style preference
|
"PERF401", # manual-list-comprehension - style preference
|
||||||
"RUF005", # collection-literal-concatenation - style preference
|
"RUF005", # collection-literal-concatenation - style preference
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user