Skip to content

noqa comment is moved from star import to constant import #1427

@jparise

Description

@jparise

Given:

from package import CONSTANT
from package import *  # noqa

isort will relocate the # noqa comment to the first line:

from package import CONSTANT  # noqa
from package import *

... which obviously breaks things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions