sort python imports
This commit is contained in:
parent
db1c1995fd
commit
2b0cb80138
3 changed files with 14 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue