From 57ab7089fd89a760a09fba0afcd1c7716f548c9c Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 24 Jun 2016 16:14:19 +0200 Subject: [PATCH] Trying to fix pylint in a virtualenv; it breaks when no Django is found --- .vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index f4c4fcc..48ffeb2 100644 --- a/.vimrc +++ b/.vimrc @@ -167,8 +167,12 @@ let g:syntastic_check_on_wq = 0 let g:syntastic_error_symbol = '✗' let g:syntastic_warning_symbol = '⚠' +"let g:syntastic_python_checkers = ['pylint'] +"let g:syntastic_python_checkers = ['pylint', 'flake8', 'pyflakes'] + " No silly 80-char line limit. Sorry pep-8. Also, Django support. Disable 'invalid name', 'missing docstring' -let g:syntastic_python_pylint_post_args="--max-line-length=120 --load-plugins pylint_django -d C0103,C0111" +"let g:syntastic_python_pylint_post_args="--max-line-length=120 --load-plugins pylint_django -d C0103,C0111" +let g:syntastic_python_pylint_post_args="--max-line-length=120 -d C0103,C0111" " Use the virtualenv's Python interpreter "if $VIRTUAL_ENV != ''