Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jul 1, 2025

Resubmitting #10462, this time ignoring ruff rule SIM118.

Please review carefully each commit/rule, I am happy to ignore any rule you don't find useful. For example, I'm not certain whether SIM102 results in more readable or more efficient code (9643fdd).

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

Copy link
Collaborator

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (though the previous one lgtm too...)

any feedback from others?

@max-sixty max-sixty added the plan to merge Final call for comments label Jul 1, 2025
SIM102 Use a single `if` statement instead of nested `if` statements
SIM113 Use `enumerate()` for index variable in `for` loop
SIM114 Combine `if` branches using logical `or` operator
DimitriPapadopoulos and others added 6 commits July 4, 2025 08:22
SIM201 Use `... != ...` instead of `not ... == ..."`
SIM905 Consider using a list literal instead of `str.split`
SIM910 Use `.get(...)` instead of `.get(..., None)`
SIM102 Use a single `if` statement instead of nested `if` statements
@max-sixty max-sixty merged commit a8de733 into pydata:main Jul 4, 2025
35 of 37 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the SIM branch July 4, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants