Skip to content

fix: remove redundant GPU recorder int casts (#494) - #1163

Merged
squid-protocol merged 1 commit into
squid-protocol:mainfrom
Glazzze:fix/issue-494-ruf046-gpu-recorder
Aug 9, 2026
Merged

squid-protocol merged 1 commit into
squid-protocol:mainfrom
Glazzze:fix/issue-494-ruf046-gpu-recorder

Conversation

@Glazzze

@Glazzze Glazzze commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Description of Structural Changes

Fixes #494.

  • Removed 13 redundant int(...) wrappers around round(...) in gitgalaxy/recorders/gpu_recorder.py.
  • Removed the corresponding 13 resolved RUF046 entries from tests/ruff_audit_baseline.json.
  • No runtime or output-schema behavior changes: round(value) without ndigits already returns an integer.

Validation

Passed locally:

  • ruff check gitgalaxy/recorders/gpu_recorder.py --select RUF046
  • ruff format gitgalaxy/recorders/gpu_recorder.py --check
  • python tests/ruff_audit.py --ci
  • pytest tests/tools_recorders/test_gpu_recorder.py -q — 6 passed

The full suite collected successfully, but the local execution session interrupted before completion; CI will run the repository-wide checks.

Visual Observatory Testing

  • Not run — this is a lint-only refactor and does not change _galaxy.json, the CLI JSON contract, or Observatory rendering.

The Differential Scan Acknowledgement

@Glazzze
Glazzze requested a review from squid-protocol as a code owner August 9, 2026 08:28
Copilot AI lite review requested due to automatic review settings August 9, 2026 08:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@squid-protocol
squid-protocol merged commit ed5cdce into squid-protocol:main Aug 9, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ruff RUF046: redundant int() casts in gpu_recorder.py

3 participants