Merge pull request #237 from keith/ks/mypy-linter

Add python mypy support
This commit is contained in:
w0rp
2017-01-15 13:05:37 +00:00
committed by GitHub
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
" Author: Keith Smiley <k@keith.so>
" Description: mypy support for optional python typechecking
let g:ale_python_mypy_args = get(g:, 'ale_python_mypy_args', '')
function! g:ale_linters#python#mypy#GetCommand(buffer) abort
return g:ale#util#stdin_wrapper
\ . ' .py mypy --show-column-numbers '
\ . g:ale_python_mypy_args
endfunction
call g:ale#linter#Define('python', {
\ 'name': 'mypy',
\ 'executable': 'mypy',
\ 'command_callback': 'ale_linters#python#mypy#GetCommand',
\ 'callback': 'ale#handlers#HandleGCCFormat',
\})