Append post args

13 views
Skip to first unread message

Yoni Elentok

unread,
Jul 28, 2019, 4:02:36 AM7/28/19
to vim-syntastic
Hi,

I am trying to append a number of args to pass to pylint, but with no success.
I want to add init-hook by the project I am work on

I tried:
let g:syntastic_python_pylint_post_args="--max-line-length=120"
let g:syntastic_python_pylint_post_args+="--init-hook='import sys'"
if project1:
    let g:syntastic_python_pylint_post_args+="--init-hook='sys.path.append('/path/to/project1')"
else:
    let g:syntastic_python_pylint_post_args+="--init-hook='sys.path.append('/path/to/project2')"
Reply all
Reply to author
Forward
0 new messages