24
Find the bug (a classic)
(programming.dev)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
That's a funny way to spell Ruff
Yeah I tried Ruff about a year ago and it only had really trivial lints so it wasn't a good replacement for Pylint. Is it on par yet?
It has implemented about half - I would check which the important ones are, and check if it's been implemented (which is being tracked in issue 970):
https://github.com/astral-sh/ruff/issues/970
Astral claims Ruff has more rules total (about 800), but implemented about half of Pylint (which has 400 rules, so 200 implemented).
What do you mean by trivial? I am not necessarily the most experienced coder, but it does a great job yelling at me to keep methods short and simple.
I'd suggest taking five minutes whenever and look up the ruff ruleset to see if it would be helpful for you.
Also maybe because I don't know how to use pylint in vs code, but the only semi useful thing it catches for me is if my venv doesn't have a library the code imports.
Edit: For example, Ruff has caught this bug (mutable argument defaults) in my code before.
Yes style things like that are what I would consider trivial. I also think those are actively bad lints. Yes methods should be short in general, but making it a hard enforced limit means you end up getting sidetracked by refactoring when you only wanted to add one line to a method.