Skip to content

Enable the Ruff SIM checks family #1404

Description

@coderabbitai

Summary

Enable the Ruff SIM (flake8-simplify) checks family in the project lint configuration.

Rationale

The current review identified nested context managers that Ruff rule SIM117 can simplify. Enabling the complete SIM checks family will detect similar maintainability issues consistently during local development and continuous integration.

Affected areas

  • Ruff configuration
  • Existing Python source and test files that fail newly enabled SIM rules

Required changes

  1. Update the Ruff configuration to enable the SIM checks family.
  2. Run Ruff against the repository.
  3. Apply minimal code changes for any newly reported valid SIM findings.
  4. Document any intentional exclusions in the Ruff configuration, if exclusions are necessary.

Acceptance criteria

  • Ruff selects the SIM checks family.
  • The repository passes Ruff with the enabled checks.
  • Any exclusions have a documented reason.

Backlinks

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions