Open cmaeder opened 10 months ago
cercis replaces triple single quotes with triple double quotes (despite to use single quotes) and then complains about quadruple double quotes.
For example, take this code (a double quoted string within triple single quotes):
'''"test"'''
And run it with these arguments:
$ cercis test.py
The resulting error is (showing quadruple double quotes):
error: cannot format test.py: Cannot parse: 1:11: """"test""""
Expected behavior
no error, as with the option "single-quote = false"
Environment
Hi @cmaeder , thanks for raising this issue.
This is indeed a bug of Cercis, but I haven't had time yet to further investigate how to solve it. I'll keep this in mind and maybe get back to it in a few weeks.
cercis replaces triple single quotes with triple double quotes (despite to use single quotes) and then complains about quadruple double quotes.
For example, take this code (a double quoted string within triple single quotes):
And run it with these arguments:
The resulting error is (showing quadruple double quotes):
Expected behavior
no error, as with the option "single-quote = false"
Environment