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
|
(with-ability lsp-python
|
||||||
(depends-on 'lsp-python-ms))
|
(depends-on 'lsp-python-ms))
|
||||||
|
|
||||||
|
(with-ability python-black
|
||||||
|
(depends-on 'python-black))
|
||||||
|
|
||||||
;; Extension -------------------------------------
|
;; Extension -------------------------------------
|
||||||
(extension python
|
(extension python
|
||||||
:version "2.31"
|
:version "2.31"
|
||||||
|
|
|
@ -114,8 +114,10 @@
|
||||||
;; enable autopep8 formatting on save
|
;; enable autopep8 formatting on save
|
||||||
(add-hook 'elpy-mode-hook 'py-autopep8-enable-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 ()
|
(ability venv ()
|
||||||
"Virtualenv support"
|
"Virtualenv support"
|
||||||
|
|
Loading…
Reference in New Issue