-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add code actions to add/remove/sort imports #86
Comments
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 :/ |
+1, import magic and isort combo would be amazing. I would probably leave isort as a separate manual command (same as YAPF). |
To clarify, having a separate isort command would allow the user to clean the imports manually, not only when new ones are added automatically. |
+1 for including importmagic! There are atom and vscode implementations already, guess it should be easy? |
any updates on this one? |
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.
The text was updated successfully, but these errors were encountered: