Skip to content

chore: fix ruff E741 — rename ambiguous variable l to descriptive names - #24233

Closed
ryptotalent wants to merge 1 commit into
NousResearch:mainfrom
ryptotalent:fix/ruff-e741-ambiguous-variables
Closed

chore: fix ruff E741 — rename ambiguous variable l to descriptive names#24233
ryptotalent wants to merge 1 commit into
NousResearch:mainfrom
ryptotalent:fix/ruff-e741-ambiguous-variables

Conversation

@ryptotalent

Copy link
Copy Markdown
Contributor

Summary

Rename the ambiguous variable name l (easily confused with the digit 1) to descriptive, context-appropriate names across 5 files. This fixes the remaining E741 warnings flagged by ruff.

Changes

  • gateway/platforms/feishu_comment.py: llink in wiki-links list comprehension
  • gateway/platforms/signal.py: llength in style-adjustment loop
  • tools/fuzzy_match.py: lline in closest-lines candidate filter
  • tools/patch_parser.py: lline in hunk search/replace line extraction (2 instances)
  • tools/tts_tool.py: lline in NeuTTS stderr filter

Test Plan

  • ruff check --select=E741 passes (0 errors, was 6)
  • py_compile passes for all 5 modified files
  • Zero logic changes — only variable names renamed

Follows the same pattern as previously merged ruff cleanup PRs (#23940, #23937, #23926).

…ames

Rename 'l' (easily confused with digit '1') to descriptive names
across 5 files: link, length, line. All instances verified against
surrounding context. Zero logic changes.

Fixes remaining E741 warnings from ruff check (6 errors across
gateway/platforms/feishu_comment.py, gateway/platforms/signal.py,
tools/fuzzy_match.py, tools/patch_parser.py, tools/tts_tool.py).

Follows same pattern as merged ruff cleanup PRs NousResearch#23940, NousResearch#23937, NousResearch#23926.
@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have labels May 12, 2026
@Slobaka

Slobaka commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Closing — stale PR from May. Ruff E741 fixes are low-priority lint changes. If these variables are still ambiguous, a fresh PR can be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants