Skip to content

force_to_top no longer moves imports to top of file. #1228

@domdfcoding

Description

@domdfcoding

I think I am trying to use force_to_top correctly.

With the latest version on PyPI an import that is part way down the file (but not inside a function) gets moved to the appropriate section at the top of the file. However, using the current master branch the import is left where it is, although it does get the appropriate comment added above it as per my .isort.cfg file.

Is this a bug or a deliberate change in version 5?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions