Skip to content
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

Option to enable Pylint-compatible rules? #14979

Closed
pwschaedler opened this issue Dec 15, 2024 · 2 comments
Closed

Option to enable Pylint-compatible rules? #14979

pwschaedler opened this issue Dec 15, 2024 · 2 comments
Labels
question Asking for support or clarification

Comments

@pwschaedler
Copy link

I currently use Pylint for my projects and would love to switch to Ruff. I understand not all Pylint rules are implemented yet, but my question is if it's possible to select all rules that are already implemented? Running ruff check --select PL will select the rules that are specific to Pylint, but it doesn't include all the other rules that are already covered by another tool (e.g. N805 which matches Pylint's E0213).

Is there currently a way to select all of the rules that match with Pylint? Or would it be possible to implement a way to select these, in order to provide a smoother migration path for users of other tools?

@MichaReiser MichaReiser added the question Asking for support or clarification label Dec 15, 2024
@MichaReiser
Copy link
Member

Is there currently a way to select all of the rules that match with Pylint?

I'm sorry. There's currently no such way. We could consider adding aliases for these rules but I'd have to double check if aliases work when selecting a linter-group instead of a specific rule.

Our long-term goal is to recategorize our rules and to make the upstream linter groups less prominent (or remove them entirely). Instead, we want to focus on giving users an easy way to opt in to the rules relevant for their project. See #1774

@pwschaedler
Copy link
Author

If anyone comes across this and wants it, I wrote a script to get a list of the current Pylint compatible rules from issue #970 and optionally add it to a pyproject.toml. Until a better solution becomes available! https://gist.github.com/pwschaedler/9de151297bb82e4598867b1e4a58a6b5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for support or clarification
Projects
None yet
Development

No branches or pull requests

2 participants