Black support has been added to python extension
This commit is contained in:
parent
c9de1cc056
commit
7b084c5cc4
|
@ -28,6 +28,9 @@
|
|||
(with-ability lsp-python
|
||||
(depends-on 'lsp-python-ms))
|
||||
|
||||
(with-ability python-black
|
||||
(depends-on 'python-black))
|
||||
|
||||
;; Extension -------------------------------------
|
||||
(extension python
|
||||
:version "2.31"
|
||||
|
|
|
@ -114,8 +114,10 @@
|
|||
;; enable autopep8 formatting on save
|
||||
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save))
|
||||
|
||||
|
||||
|
||||
(ability python-black '()
|
||||
"Add support for black syntax linter"
|
||||
(require 'python-black)
|
||||
(add-hook 'python-mode-hook 'python-black-on-save-mode))
|
||||
|
||||
(ability venv ()
|
||||
"Virtualenv support"
|
||||
|
|
Loading…
Reference in New Issue