mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
sort python imports
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user