From 0470fff0c5b5aff50118b35deb730779bb41c39d Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 3 Jun 2015 08:13:50 +0300 Subject: [PATCH] Checker python/pylama: add option "--force". --- plugin/syntastic.vim | 2 +- syntax_checkers/python/pylama.vim | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index c200fd09..dcaebd2c 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.6.0-89' +let g:_SYNTASTIC_VERSION = '3.6.0-90' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/python/pylama.vim b/syntax_checkers/python/pylama.vim index ab49e32b..12c3ed1c 100644 --- a/syntax_checkers/python/pylama.vim +++ b/syntax_checkers/python/pylama.vim @@ -27,7 +27,12 @@ function! SyntaxCheckers_python_pylama_GetHighlightRegex(item) endfunction function! SyntaxCheckers_python_pylama_GetLocList() dict - let makeprg = self.makeprgBuild({ 'args_after': '-f pep8' }) + if !exists('s:pylama_new') + let s:pylama_new = syntastic#util#versionIsAtLeast(self.getVersion(), [4]) + endif + + let makeprg = self.makeprgBuild({ + \ 'args_after': '-f pep8' . (s:pylama_new ? ' --force' : '') }) " TODO: "WARNING:pylama:..." messages are probably a logging bug let errorformat =