Skip to content

Enable Ruff PLW (Pylint Warning) #13749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Enable Ruff PLW (Pylint Warning) #13749

merged 1 commit into from
Apr 1, 2025

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