Skip to content

Add code actions to add/remove/sort imports #86

Description

@tomv564

A sort imports action could always be available.
An add/remove import action could be registered for locations where pyflakes complained about missing/unused imports.

See: https://github.com/alecthomas/importmagic for a library supporting this functionality.

Activity

  1. gatesn commented on Aug 21, 2017

    @gatesn
    Contributor

    Feel free to steal and build off https://github.com/palantir/python-language-server/tree/ngates/auto-import if you have time.

    It's a little too rough right now. Ideally we would want import magic to report the position it found the unimported modules instead of searching for them :/

  2. zewa666 commented on Sep 20, 2019

    @zewa666

    any updates on this one?

  3. youben11 commented on Oct 29, 2019

    @youben11
    Contributor

    @zewa666 implemented in #685. You can start testing if you'd like and report any issue that may arise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions