Re:Format Python Code Using YAPF
by jp_sc on Sunday February 09, 2020 @07:42AM
(#22281810)
Black can be configured to use single quotes. In fact, I think it's the only style configuration you can make.
[ Parent
| on HN ]
Where do you see that?
https://black.readthedocs.io/en/stable/the_black_code_style....
I think it's the `--skip-string-normalization` flag which means "Don't normalize string quotes or prefixes".
But I want them normalized. Normalized to single quotes.
Yes, this. I have early-stage cateracs, which by-and-latge is not an issue on my 40 inch monitor. But it does mean that my astigmatism drifts around monthly. My prescription changes faster than I can get new lenses cut. The BIGGEST ergonomic issue for my with Python is single versus double quotes. Double quotes are the difference between happily coding all day versus a headache at lunch time and 5% less done. Fuck Black.