←back to thread

365 points tanelpoder | 4 comments | | HN request time: 0.421s | source
1. senand ◴[] No.44980841[source]
I use black and I like it. Where does ruff differ in terms of formatting?
replies(2): >>44980869 #>>44985385 #
2. notpushkin ◴[] No.44980869[source]
It’s mostly similar, just a bit more consistent: https://docs.astral.sh/ruff/formatter/black/
replies(1): >>44984415 #
3. VeejayRampay ◴[] No.44984415[source]
and speed, it's way way faster
4. pnt12 ◴[] No.44985385[source]
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.