Skip to content

Ruff misc: E402 + ambiguous-unicode grab-bag (RUF001, RUF003) #504

Closed

Description

@squid-protocol

Objective

Part of the ruff lint baseline cleanup (E402 (import not at the top of the file), RUF001 (ambiguous Unicode character in a string), RUF003 (ambiguous Unicode character in a comment)). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.

Findings

  • gitgalaxy/metrics/signal_processor.py:30 (E402) -- Module level import not at top of file
  • gitgalaxy/metrics/signal_processor.py:31 (E402) -- Module level import not at top of file
  • gitgalaxy/recorders/llm_recorder.py:375 (RUF001) -- String contains ambiguous ℹ (INFORMATION SOURCE). Did you mean i (LATIN SMALL LETTER I)?
  • gitgalaxy/standards/language_standards.py:5899 (RUF003) -- Comment contains ambiguous ’ (RIGHT SINGLE QUOTATION MARK). Did you mean ``` (GRAVE ACCENT)?

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

Activity

  1. added
    good first issue
    python
    refactor
    priority: low
    on Jul 26, 2026
  2. Glazzze commented on Aug 8, 2026

    @Glazzze
    Contributor

    Hi @squid-protocol, I’m interested in taking #504.

    Before starting, I checked current main and noticed that the two imports in signal_processor.py are already at the top of the file, the ℹ string has a # noqa: RUF001 annotation, and I could not find the listed E402/RUF001/RUF003 entries in the current Ruff baseline.

    Is there still a remaining target for this issue, or should it be closed as already resolved? I’m happy to take any confirmed remaining cleanup as a small focused PR.

  3. squid-protocol commented on Aug 9, 2026

    @squid-protocol
    OwnerAuthor

    Hey @Glazzze,
    Thanks for checking this out! Yes it does look like this has become stale. Thanks for your attention on this. Feel free to check any others out. I'll go through real quick to see if any else of my issues iwth the "good first issue" label.

  4. squid-protocol commented on Aug 9, 2026

    @squid-protocol
    OwnerAuthor

    @Glazzze if you're looking for another pickup: #494 (Ruff RUF046 -- redundant int() casts in gpu_recorder.py) looks like a good fit. Single file, single rule, 13 uniform one-line findings (drop the redundant int(...) wrapper), no semantic judgment calls needed unlike some of the others in this batch. I just re-verified against a fresh ruff check (pinned 0.16.0) and the current baseline -- all 13 are still live, so it's a clean, fully-open target. Straightforward to batch into one PR per the issue's own note.

  5. Glazzze commented on Aug 9, 2026

    @Glazzze
    Contributor

    OK!Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuepriority: lowpythonrefactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions