4 ms·
From the experience in our code base, yapf produces higher-quality results, but is much slower. Black removes any additional parentheses added to enable a line
by petters 7y ago
From the experience in our code base, yapf produces higher-quality results, but is much slower.
Black removes any additional parentheses added to enable a line split at a reasonable position (such as "and"). With those removed, black has to split at weird locations like at a function call.
But switching to black just for the speed increase is reasonable.
- smitty1e 7y agoMy perfect formatter would be ridiculous to implement and maintain. Thus I "like" black's opinionated take. "I see some rude code and I want to paint it black, " -- Sir Mick Jagger, probably.