summaryrefslogtreecommitdiff
path: root/ale_linters/python/pycodestyle.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/python/pycodestyle.vim')
-rw-r--r--ale_linters/python/pycodestyle.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/ale_linters/python/pycodestyle.vim b/ale_linters/python/pycodestyle.vim
index 9254f4ab..de96363f 100644
--- a/ale_linters/python/pycodestyle.vim
+++ b/ale_linters/python/pycodestyle.vim
@@ -10,7 +10,13 @@ function! ale_linters#python#pycodestyle#GetExecutable(buffer) abort
endfunction
function! ale_linters#python#pycodestyle#GetCommand(buffer) abort
- return ale#Escape(ale_linters#python#pycodestyle#GetExecutable(a:buffer))
+ let l:executable = ale_linters#python#pycodestyle#GetExecutable(a:buffer)
+
+ let l:exec_args = l:executable =~? 'pipenv$'
+ \ ? ' run pycodestyle'
+ \ : ''
+
+ return ale#Escape(l:executable) . l:exec_args
\ . ' '
\ . ale#Var(a:buffer, 'python_pycodestyle_options')
\ . ' -'