PyCQA / flake8-import-order

Flake8 plugin that checks import order against various Python Style Guides
GNU Lesser General Public License v3.0
278 stars 72 forks source link

I202 flags multiline imports #116

Closed andrew-regan closed 7 years ago

andrew-regan commented 7 years ago

I have several import statements that wrap lines due to line length restrictions. The recent changes for I202 flag these as in violation.

Examples:

from foo import bar, baz, \
    bee
from foo import (bar, baz, 
    bee)

I also haven't found a way to ignore these by adding # noqa: I202 because that looks to also cause I202 to be raised.

andrew-regan commented 7 years ago

@pgjones FYI

pgjones commented 7 years ago

Thanks. I think the current master branch should fix this, could you try it and confirm?

alex commented 7 years ago

@pgjones I can confirm that it fixes the issue for me. Thanks!

andrew-regan commented 7 years ago

@pgjones confirmed and thanks for the quick fix!

pgjones commented 7 years ago

Thanks, 0.14.1 released.