diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-06-05 08:32:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 08:32:45 +0100 |
commit | c49ea1a5e336f9b9e31a8de362b42f33aa79eb95 (patch) | |
tree | 587d223c321674579ce9b72dd313f147ff9dccc8 /ale_linters/python/prospector.vim | |
parent | 3a6a92283e8eaf76f54292b347dcc6db32c23165 (diff) | |
parent | ca88e67af0dc159bdb78ad9f038d2c9336fb1b71 (diff) | |
download | ale-c49ea1a5e336f9b9e31a8de362b42f33aa79eb95.zip |
Merge pull request #1629 from elebow/pipenv-executable-python-tools
Allow all Python linter executables to be set to `pipenv`.
Diffstat (limited to 'ale_linters/python/prospector.vim')
-rw-r--r-- | ale_linters/python/prospector.vim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ale_linters/python/prospector.vim b/ale_linters/python/prospector.vim index b3d11aa8..eadfee47 100644 --- a/ale_linters/python/prospector.vim +++ b/ale_linters/python/prospector.vim @@ -14,7 +14,14 @@ function! ale_linters#python#prospector#GetExecutable(buffer) abort endfunction function! ale_linters#python#prospector#GetCommand(buffer) abort - return ale#Escape(ale_linters#python#prospector#GetExecutable(a:buffer)) + let l:executable = ale_linters#python#prospector#GetExecutable(a:buffer) + + let l:exec_args = l:executable =~? 'pipenv$' + \ ? ' run prospector' + \ : '' + + return ale#Escape(l:executable) + \ . l:exec_args \ . ' ' . ale#Var(a:buffer, 'python_prospector_options') \ . ' --messages-only --absolute-paths --zero-exit --output-format json' \ . ' %s' |