Skip to content

Ruff SIM102: nested-if findings in galaxyscope.py and language_lens.py #492

Closed

Description

@squid-protocol

Objective

Part of the ruff lint baseline cleanup (SIM102 -- nested if that could collapse into one if ... and ...). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.

Findings

  • gitgalaxy/galaxyscope.py:1035 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/galaxyscope.py:1154 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/galaxyscope.py:1158 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/standards/language_lens.py:190 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/standards/language_lens.py:337 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/standards/language_lens.py:459 (SIM102) -- Use a single if statement instead of nested if statements
  • gitgalaxy/standards/language_lens.py:656 (SIM102) -- Use a single if statement instead of nested if statements

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
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