Skip to content

Ruff rules PL for Pylint #330

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
Mar 11, 2025
Merged

Ruff rules PL for Pylint #330

merged 1 commit into from
Mar 11, 2025

Conversation

cclauss
Copy link
Member

@cclauss cclauss commented Mar 7, 2025

Add ruff rules PL for Pylint: https://docs.astral.sh/ruff/rules/#pylint-pl
% ruff check --select=PL
% ruff check --select=PLR0 --preview

@@ -6814,7 +6811,7 @@ def ParseArguments(args):
output_format = val
elif opt == '--quiet':
quiet = True
elif opt == '--verbose' or opt == '--v':
elif opt in {'--verbose', '--v'}:
Copy link
Member Author

Choose a reason for hiding this comment

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

Should the second item be --v or just -v?

Copy link
Member

Choose a reason for hiding this comment

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

How about we include both?

Or we should check whether --v can be removed, as that is non-standard and hopefully not in use

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer replacing --v, but I have no idea how we'll check if people use --v.

Copy link
Member Author

@cclauss cclauss Mar 8, 2025

Choose a reason for hiding this comment

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

Discussion moved because this would be a breaking change as in that current production usage may break.

@cclauss cclauss force-pushed the ruff-rules-PL-for-pylint branch from 01e6e78 to dac8fda Compare March 11, 2025 18:30
@cclauss
Copy link
Member Author

cclauss commented Mar 11, 2025

Reviews please.

@cclauss cclauss merged commit 66c4c80 into develop Mar 11, 2025
10 checks passed
@cclauss cclauss deleted the ruff-rules-PL-for-pylint branch March 11, 2025 22:00
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy