Black support has been added to python extension

This commit is contained in:
Sameer Rahmani 2019-12-20 14:27:31 +00:00
parent c9de1cc056
commit 7b084c5cc4
2 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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"