sort python imports

This commit is contained in:
uelei 2019-08-09 20:09:18 -03:00
parent db1c1995fd
commit 2b0cb80138
No known key found for this signature in database
GPG key ID: 038A85BDCD385E33
3 changed files with 14 additions and 4 deletions

View file

@ -53,3 +53,10 @@
((when-let (bin (projectile-locate-dominating-file default-directory "bin/python"))
(setq-local doom-modeline-python-executable (expand-file-name "bin/python" bin))))
((executable-find exe))))))
;;;###autoload
(defun +python/optimize-imports ()
"organize imports"
(interactive)
(pyimport-remove-unused)
(pyimpsort-buffer))