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

black is opinionated. If you disagree with black's opinions then a negotiable formatter like YAPF might be better.

I personally love black though.



Black 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.


I 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


I'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.




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

Search: