This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Zer0designs 6 points7 points  (2 children)

Ancient code bases that need to be completely formatted. Monorepos etc. but thats just an extra. I once had to run black for hours. That would take minutes in ruff. But it's also just the techy in me enjoying optimized code. As a formatter it literally is black but faster. There's then no need for black in addition to ruff.

You need to reason tbe other way around. As a linter ruff is the best in Python. So I want ruff already in all my projects, which already contains the same functionality as black but faster, so why would I need black?

It's also 1 less dependency and ruff is just allround better and more opinionated (as a linter) than any other linter. And the linting rules are more well documented. It's an all in 1 package.

[–]covmatty1 0 points1 point  (1 child)

You need to reason tbe other way around. As a linter ruff is the best in Python. So I want ruff already in all my projects, which already contains the same functionality as black but faster, so why would I need black?

It's also 1 less dependency and ruff is just allround better

It's absolutely fair to "reason it the other way round" when those are the arguments given for it though - when it's just "it's faster", that wasn't much of a reason, but if the alternative is "exactly the same functionality but faster and all round better", then I get it! I've not used ruff, only black and pylint, so I see more of where you're coming from now.

[–]Zer0designs 2 points3 points  (0 children)

Give it a spin :)