Open rbranche opened 9 years ago
@rbranche thanks for the bug report!
We have something in the works that will help with this, in #22 - it'll hopefully land soon and I'll push a new version up to PyPI.
We'll also look into some ways to catch this in a less brute-force sort of way. I'm sure there are a few other cases very similar to this.
While the E302 was not in the changes per-se, it was introduced by the changes. flake8-diff should take into account the changed lines along with the immediately adjacent lines:
flake8-diff currently only looks at:
But it should look at: