4 ms·
Our test pipeline fails any Python service trying to deploy if the black style check fails. I was initially grumpy about my org adopting black because I prefer
by fjp 7y ago
Our test pipeline fails any Python service trying to deploy if the black style check fails.
I was initially grumpy about my org adopting black because I preferred single quotes, but the level of standardization is a huge win in my book. I never even think about my code style anymore, I just write it and then run black.
- meowface 7y agoI've always been a double-quoter, in contrast to most Python devs I know/work with. After we standardized on black, I got some satisfaction seeing all of my coworkers bend to my will (/s).
- detaro 7y agoHow narrow those two choices are! The correct answer is obviously to use single-quotes for keys and key-like cases and double-quotes for values. Make formatters impossible to write! (last sentence very /s, but that style actually exists)
- kbd 7y agoThat actually seems to be the de-facto Python style. Even Guido said at some point that that's his convention.
- witten 7y agoYou can disable string normalization with Black, and then continue using single quotes all day. But then, yeah, you give up enforced standardization on that.
- prirun 7y agoI started out double quoting but it takes longer to type Shift " vs ' so I switched early on.