Closed 0xfeedface closed 2 years ago
Its a decision by Black that all strings should be double-quoted to make Python code look similar to C code. I am not a fan of it but that's what the tool does.
Ok, and someone/we opted for Black and not e.g. something that does PEP-8?
We opted to use Black for our code. See this as a proposal that you can reject if you don't like it.
Well, IMO public Python code should be in accordance with PEP-8 as this is the commonly used standard. But that is my personal opinion.
Well, IMO public Python code should be in accordance with PEP-8 as this is the commonly used standard. But that is my personal opinion.
According to the black website, it is PEP-8 compliant.
Actually, according to PEP-8, the default quote for strings should be
'
. But typically, people use"
when they need to show'
inside the string.