summaryrefslogtreecommitdiff
path: root/ale_linters/python
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
committerw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
commitecbb27680563a50d4dd981f968d659ef20bfbe30 (patch)
tree3e60f1ad7840dce1351819cd191a4c7ca0a7330e /ale_linters/python
parentc33602534e205aa677521ce49a8054588d88bdc2 (diff)
downloadale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip
Replace every stdin-wrapper script with the new %t formatting support
Diffstat (limited to 'ale_linters/python')
-rw-r--r--ale_linters/python/mypy.vim5
-rw-r--r--ale_linters/python/pylint.vim4
2 files changed, 4 insertions, 5 deletions
diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim
index 1509d9e6..55ab9022 100644
--- a/ale_linters/python/mypy.vim
+++ b/ale_linters/python/mypy.vim
@@ -10,10 +10,9 @@ function! g:ale_linters#python#mypy#GetCommand(buffer) abort
\ ? 'MYPYPATH=' . l:automatic_stubs_dir . ' '
\ : ''
- return l:automatic_stubs_command
- \ . g:ale#util#stdin_wrapper
- \ . ' .py mypy --show-column-numbers '
+ return 'mypy --show-column-numbers '
\ . g:ale_python_mypy_options
+ \ . ' %t'
endfunction
let s:path_pattern = '[a-zA-Z]\?\\\?:\?[[:alnum:]/\.\-_]\+'
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim
index f0cd5bd6..ada1bfa2 100644
--- a/ale_linters/python/pylint.vim
+++ b/ale_linters/python/pylint.vim
@@ -12,10 +12,10 @@ function! ale_linters#python#pylint#GetExecutable(buffer) abort
endfunction
function! ale_linters#python#pylint#GetCommand(buffer) abort
- return g:ale#util#stdin_wrapper . ' .py '
- \ . ale_linters#python#pylint#GetExecutable(a:buffer)
+ return ale_linters#python#pylint#GetExecutable(a:buffer)
\ . ' ' . g:ale_python_pylint_options
\ . ' --output-format text --msg-template="{path}:{line}:{column}: {msg_id} {msg}" --reports n'
+ \ . ' %t'
endfunction
call ale#linter#Define('python', {