Skip to content

Ruff W291: trailing whitespace in record_keeper.py string literals #499

Closed as not planned

Description

@squid-protocol

Objective

Part of the ruff lint baseline cleanup (W291 -- trailing whitespace (inside a string literal)). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.

Findings

  • gitgalaxy/recorders/record_keeper.py:187 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:188 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:189 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:190 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:283 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:284 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:285 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:286 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:287 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:288 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:646 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:647 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:650 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:652 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:653 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:676 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:808 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:809 (W291) -- Trailing whitespace
  • gitgalaxy/recorders/record_keeper.py:840 (W291) -- Trailing whitespace

Approach

Check each before stripping -- if the whitespace is intentional formatting inside embedded SQL/CLI text, leave it and close that line item as not-applicable rather than force a fix.

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. squid-protocol commented on Oct 3, 2026

    @squid-protocol
    OwnerAuthor

    Moot on current main: record_keeper.py no longer has any trailing whitespace, and ruff check --select W291 passes on it (W291 is enabled in pyproject), following the W291 sweep in #938 and later record_keeper refactors.

  3. added
    scope:infra
    on Oct 16, 2026
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: lowpythonrefactorscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions