3 ms·
black is opinionated. If you disagree with black's opinions then a negotiable formatter like YAPF might be better. I personally love black though.
by duckerude 7y ago
black is opinionated. If you disagree with black's opinions then a negotiable formatter like YAPF might be better.
I personally love black though.
- bonzini 7y agoBlack is opinionated enough that you will occasionally mumble about it, but good enough that you will keep using it anyway. That's a remarkable achievement for a formatter. For me it just took a little to get used to double-quoted strings. Rust's "cargo fmt" tool is similarly good.
- gimboland 7y agoI hear you on the double-quoted strings; and that's why the only black configuration I allow myself, is "skip-string-normalization = true" in my pyproject.toml
- strokirk 7y agoI'd say that black is way too opinionated, especially since it doesn't produce good output a lot of the time. At my company we consistently have to adjust the way we write code in order for black not to mangle it.