From c108143526eb1fee53813fdfd3fcdc7276f3f9a9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 10 Oct 2019 10:46:13 +0200 Subject: [PATCH] [UPDATE][VIM] More ALE linters for python I de-activated the pycodestyle module for pyls because I already use flake8 to do that job. --- vim/.vim/ftplugin/python.vim | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/vim/.vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim index 24539c9..b734f3f 100644 --- a/vim/.vim/ftplugin/python.vim +++ b/vim/.vim/ftplugin/python.vim @@ -1,5 +1,18 @@ -" Use black as ALE fixer for python -let b:ale_fixers=[ 'black' ] +" Use my desired ALE fixers for python +let b:ale_fixers=[ 'black', 'isort' ] +" Use my desired ALE linters for python +let b:ale_linters=[ 'flake8', 'mypy', 'pylint', 'pyls' ] + +" Disable pycodestyle checks from pyls because I'm already using flake8 +let b:ale_python_pyls_config={ + \ 'pyls': { + \ 'plugins': { + \ 'pycodestyle': { + \ 'enabled': v:false + \ }, + \ }, + \ }, + \ } " Change max length of a line to 88 for this buffer to match black's settings setlocal colorcolumn=88