flake8-quotes icon indicating copy to clipboard operation
flake8-quotes copied to clipboard

No error after outer quotes are changed per Q003 if inner quotes are still escaped

Open rpdelaney opened this issue 4 years ago • 3 comments

Possibly related #69 , #77

  1. 'str\'i\'ng' Q003
  2. "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."

rpdelaney avatar May 11 '20 21:05 rpdelaney