Skip to content

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Mar 31, 2025

Ref #13295
Rules: Pylint Warning (PLW)

Having all 4 Pylint-based groups enabled slightly simplifies the selection to PL

subprocess-run-without-check (PLW1510) is the rule that asks for an explicit check= param to subprocess.run (might be good to also validate whether some of those calls should check the result).

redefined-loop-name (PLW2901) disallows overwriting a loop variable with an assignement.
Can catch some good code smells, but what it caught here feels quite pedantic. Maybe we could feature-request an exception for immediatly-reassigned loop variables? (which also feels cleaner than an additional comprehension/map)

@srittau srittau merged commit eafa274 into python:main Apr 1, 2025
58 checks passed
@Avasam Avasam deleted the Ruff-PLW branch April 1, 2025 15:14
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants