> $ cat t.py
hi = "Hello, world!"
And
flake8 t.py
t.py:1:6: Q000 Remove bad quotes
Sorry, I don't understand, why double quotes are bad?
black for format my code use double quotes and then I want to use wemake-python-styleguide.
But why you think double quotes is not good?
And why do think that double quotes are good? 馃檪
The thing is: it is absolutely equally good or bad to use ' or " in your project.
We just have to make a choice here. And use this type of quotes consistency.
Several things here:
black -S to force single quotes with black and flake8-quotesblack is not officially supported: https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/integrations.html#auto-formatters Use autoflake8 which is betterCame across this while also trying to answer this question. For what it's worth black actually has some reasons for using double quotes. Find those here!
One more thing! Single quotes are easier to type, because you don't have to press shift.