1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Trying to fix pylint in a virtualenv; it breaks when no Django is found

This commit is contained in:
2016-06-24 16:14:19 +02:00
parent 9d5d6f4793
commit 57ab7089fd

6
.vimrc
View File

@@ -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 != ''