Repository navigation
Closed
Labels
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Milestone
Description
Objective
Part of the ruff lint baseline cleanup (RUF046 -- unnecessary int(...) cast around a value that's already an int). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.
Findings
gitgalaxy/recorders/gpu_recorder.py:185(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:190(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:210(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:211(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:212(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:213(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:214(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:216(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:217(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:218(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:243(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:252(RUF046) -- Value being cast tointis already an integergitgalaxy/recorders/gpu_recorder.py:320(RUF046) -- Value being cast tointis already an integer
Approach
All 13 are the same one-line fix (drop the redundant int(...) wrapper) in the same file -- safe to batch.
Fix in a small PR, removing resolved entries from tests/ruff_audit_baseline.json (see tests/ruff_audit.py's module docstring for the regen command).
Parent: #469
Metadata
Metadata
Assignees
Labels
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Activity
Glazzze commentedon Aug 9, 2026
Hi @squid-protocol, I’d like to work on this issue. I’ll remove the redundant
int(...)casts ingpu_recorder.pyand submit a focused PR.fix: remove redundant GPU recorder int casts (#494) (#1163)