diff options
author | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-08-29 10:42:25 +0200 |
---|---|---|
committer | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-08-29 10:42:25 +0200 |
commit | 0de847a8e1793b597ba0a73ae8e20797a5fce920 (patch) | |
tree | 6f465b404af38ff25dddde94e052bdfa0a3a38c8 /ale_linters/python | |
parent | 62f07d820c2b474216657bd43a3a919469c9584f (diff) | |
parent | 7d4ce4e6aa960a6052a16d90322566d6f4fddb7c (diff) | |
download | ale-0de847a8e1793b597ba0a73ae8e20797a5fce920.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ale_linters/python')
-rw-r--r-- | ale_linters/python/pydocstyle.vim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ale_linters/python/pydocstyle.vim b/ale_linters/python/pydocstyle.vim index 3901db4d..69ae3807 100644 --- a/ale_linters/python/pydocstyle.vim +++ b/ale_linters/python/pydocstyle.vim @@ -16,17 +16,15 @@ function! ale_linters#python#pydocstyle#GetExecutable(buffer) abort endfunction function! ale_linters#python#pydocstyle#GetCommand(buffer) abort - let l:dir = fnamemodify(bufname(a:buffer), ':p:h') let l:executable = ale_linters#python#pydocstyle#GetExecutable(a:buffer) - let l:exec_args = l:executable =~? 'pipenv$' \ ? ' run pydocstyle' \ : '' - return ale#path#CdString(l:dir) + return ale#path#BufferCdString(a:buffer) \ . ale#Escape(l:executable) . l:exec_args - \ . ' ' . ale#Var(a:buffer, 'python_pydocstyle_options') - \ . ' ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:t')) + \ . ale#Pad(ale#Var(a:buffer, 'python_pydocstyle_options')) + \ . ' %s:t' endfunction function! ale_linters#python#pydocstyle#Handle(buffer, lines) abort |