From 5a24296c8ec8c0d6795676825b82c8eaed80c8c0 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 30 Nov 2025 15:13:04 +0100 Subject: [PATCH] Enable E741: rename ambiguous variable l to line --- PYTHON/extractLinks/tests/test_main.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PYTHON/extractLinks/tests/test_main.py b/PYTHON/extractLinks/tests/test_main.py index ba26a00..e732adc 100644 --- a/PYTHON/extractLinks/tests/test_main.py +++ b/PYTHON/extractLinks/tests/test_main.py @@ -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(): diff --git a/pyproject.toml b/pyproject.toml index af27a12..f97e575 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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