3 ms·
Black can be configured to use single quotes. In fact, I think it's the only style configuration you can make.
by jp_sc 7y ago
Black can be configured to use single quotes. In fact, I think it's the only style configuration you can make.
- akvadrako 7y agoWhere do you see that? https://black.readthedocs.io/en/stable/the_black_code_style.html#strings https://black.readthedocs.io/en/stable/the_black_code_style....
- 00ajcr 7y agoI think it's the `--skip-string-normalization` flag which means "Don't normalize string quotes or prefixes".
- xapata 7y agoBut I want them normalized. Normalized to single quotes.
- dbcurtis 7y agoYes, 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.
- brainbag 7y agoCan you say more about how single quotes vs double quotes is helpful for you? I rarely write python, but I have a passion for accessibility and I'm curious about this.