tweekmonster / impsort.vim

Sort and highlight Python imports in Vim
MIT License
37 stars 6 forks source link

Respect Inline comments with multiline imports #20

Closed DanCardin closed 4 years ago

DanCardin commented 7 years ago
from package.module import (  # noqa
    long_function_name1, long_function_name1, long_function_name1,
)

deletes the whole import. Which is unfortunate because it seems that's where the # noqa has to be for flake8 to not complain.

also

from package.module import (
    long_function_name1, long_function_name1, long_function_name1,
)  # noqa

turns to

from package.module import (
    long_function_name1, long_function_name1, long_function_name1,
)

)  # noqa

which isn't great, but since that does nothing for flake8 I don't much care :P