[ADD][VIM] ALE settings for Mypy linter in Python

This commit is contained in:
Bruno BELANYI 2019-10-25 14:01:19 +02:00
parent 43a0785118
commit 571d5bc9e0

View file

@ -5,7 +5,7 @@ let b:undo_ftplugin.='|unlet b:ale_fixers'
let b:ale_linters=[ 'flake8', 'mypy', 'pylint', 'pyls' ]
let b:undo_ftplugin.='|unlet b:ale_linters'
"let b:ale_python_pyls_executable='pyls'
" Use pyls inside the python environment if needed
let b:ale_python_pyls_auto_pipenv=1
let b:undo_ftplugin.='|unlet b:ale_python_pyls_auto_pipenv'
@ -21,6 +21,13 @@ let b:ale_python_pyls_config={
\ }
let b:undo_ftplugin.='|unlet b:ale_python_pyls_config'
" Don't use mypy to check for syntax errors
let b:ale_python_mypy_ignore_invalid_syntax=1
let b:undo_ftplugin.='|unlet b:ale_python_mypy_ignore_invalid_syntax'
" Use mypy inside the python environment if needed
let b:ale_python_mypy_auto_pipenv=1
let b:undo_ftplugin.='|unlet b:ale_python_mypy_auto_pipenv'
" Change max length of a line to 88 for this buffer to match black's settings
setlocal colorcolumn=88
let b:undo_ftplugin.='|setlocal colorcolumn<'