Skip to content

Ruff W291: trailing whitespace in string literals (everywhere else) #500

Closed

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/cobol_refractor_controller.py:90 (W291) -- Trailing whitespace
  • gitgalaxy/cobol_to_java_controller.py:106 (W291) -- Trailing whitespace
  • gitgalaxy/core/state_rehydrator.py:54 (W291) -- Trailing whitespace
  • gitgalaxy/core/state_rehydrator.py:55 (W291) -- Trailing whitespace
  • gitgalaxy/core/state_rehydrator.py:73 (W291) -- Trailing whitespace
  • gitgalaxy/standards/analysis_lens.py:20 (W291) -- Trailing whitespace
  • gitgalaxy/standards/analysis_lens.py:21 (W291) -- Trailing whitespace
  • gitgalaxy/tools/cobol_to_java/cobol_to_java_build_forge.py:22 (W291) -- Trailing whitespace
  • gitgalaxy/tools/cobol_to_java/cobol_to_java_test_forge.py:41 (W291) -- Trailing whitespace
  • gitgalaxy/tools/cobol_to_java/cobol_to_java_test_forge.py:42 (W291) -- Trailing whitespace
  • gitgalaxy/tools/cobol_to_java/cobol_to_java_test_forge.py:43 (W291) -- Trailing whitespace
  • gitgalaxy/tools/terabyte_log_scanning/pii_leak_hunter.py:98 (W291) -- Trailing whitespace
  • gitgalaxy/tools/terabyte_log_scanning/terabyte_log_scanner.py:67 (W291) -- Trailing whitespace
  • gitgalaxy/tools/terabyte_log_scanning/terabyte_log_scanner.py:68 (W291) -- Trailing whitespace

Approach

Check each before stripping -- if the whitespace is intentional formatting inside embedded CLI/help 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. deepa-raj commented on Jul 28, 2026

    @deepa-raj
    Contributor

    Hi, I’d like to work on this as my first open-source contribution. I’ll go through the listed files and remove trailing whitespace, checking for intentional formatting as noted. Could you assign it to me?

  3. squid-protocol commented on Jul 30, 2026

    @squid-protocol
    OwnerAuthor

    hey! happy to have you check this out! Thanks a ton!

  4. deepa-raj commented on Aug 1, 2026

    @deepa-raj
    Contributor

    Thanks! Just opened the PR (#938) — let me know if anything needs adjusting.

  5. added a commit that references this issue on Aug 4, 2026
    c93ff56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issuepriority: lowpythonrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions