News for hackers. Stuff that matters.
Re:Format Python Code Using YAPF by bonzini on Sunday February 09, 2020 @04:56AM (#22281310)
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.

Re:Format Python Code Using YAPF by gimboland on Sunday February 09, 2020 @05:38AM (#22281443)
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
Re:Format Python Code Using YAPF by strokirk on Sunday February 09, 2020 @05:43AM (#22281458)
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.