Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use black and I like it. Where does ruff differ in terms of formatting?


It’s mostly similar, just a bit more consistent: https://docs.astral.sh/ruff/formatter/black/


and speed, it's way way faster


I switched to ruff for the great linting. When they introduced a formatter, I gave it a try and: - got similar results - but runs faster - I could delete one dev dependency

Given black's motto (any color as long as it's black), now I pick ruff and go with whatever formatting it produces.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: