zormit zormit - 2 months ago 28
Python Question

Show only errors with pylint and syntastic in vim

How to use synstastic in vim to display only pylint error messages? I basically want the output of

pylint -E
to be used as source for syntastic. I tried to configure syntastic in my
.vimrc
with:

let g:syntastic_python_checkers = ['python', 'pylint -E']


which did not work. Also, I tried to configure pylint to show only errors without the -E flag via the following lines in my
.pylintrc
:

disable=all
enable=E


which seems to be only
disable=all
.

Answer

It works by disabling all other categories in .pylintrc:

disable=C, F, I, R, W
Comments