summaryrefslogtreecommitdiff
path: root/ale_linters/python
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-28 19:50:36 +0100
committerw0rp <devw0rp@gmail.com>2020-08-28 19:50:36 +0100
commit7d4ce4e6aa960a6052a16d90322566d6f4fddb7c (patch)
tree0f191e0dff643cc4b53f6dbd5259fef028d7a0dd /ale_linters/python
parent3d5a2690ce707cbc9e71e8ed4d5d1955e4b26d65 (diff)
downloadale-7d4ce4e6aa960a6052a16d90322566d6f4fddb7c.zip
Close #3325 - Apply new formatting where possible
Diffstat (limited to 'ale_linters/python')
-rw-r--r--ale_linters/python/pydocstyle.vim8
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