Svelvet icon indicating copy to clipboard operation
Svelvet copied to clipboard

E221 False Positive

Open A-UNDERSCORE-D opened this issue 3 years ago • 9 comments

E221 ("Multiple spaces before operator") is being seen in the below snippet on the -1:

{
    "some long key":        1,
    "some other long key":  2,
    "short key":            3,
    "other key but neg":    -1,
}

I'm not sure if this is actually inconsistent, - isnt really being an operator there, or at the very least, as a unary one. Regardless its slightly inconsistent as the rest of those are fine, and it causes autopep8 to automatically "fix" it by dropping consistency.

Edit: Additionally, it does not appear that a noqa silences this. I'd really prefer not to simply silence the entire rule because everywhere else its exactly what I'd want.

A-UNDERSCORE-D avatar Aug 04 '21 19:08 A-UNDERSCORE-D