flake8-quotes
flake8-quotes copied to clipboard
No error after outer quotes are changed per Q003 if inner quotes are still escaped
Possibly related #69 , #77
-
'str\'i\'ng'
Q003 -
"str\'i\'ng"
No errors
The first line gives Q003
while the second line emits no errors. I took the ultimate aim of Q003 to be to eliminate escaped quotes wherever possible: if I am correct, then I suggest we should emit an additional error to actually do the un-escaping.
I don't have a considered opinion about what that should look like, but if the pump needs priming it could be something like Q004 "Remove unnecessarily escaped quotes."