diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2016-12-30 16:06:49 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2016-12-30 16:12:30 -0800 |
commit | 4566bd65c91d63056bb7801a1a6f5f3d39e11e3f (patch) | |
tree | 02870b17c4bc1275ca8a59080d5fbcb2da8b3921 /ale_linters/python | |
parent | 3e1486fc927d6641ea8d21cc31c5870cb7c75ce7 (diff) | |
download | ale-4566bd65c91d63056bb7801a1a6f5f3d39e11e3f.zip |
Add python mypy support
This adds support for the official optional python typechecker.
Diffstat (limited to 'ale_linters/python')
-rw-r--r-- | ale_linters/python/mypy.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim new file mode 100644 index 00000000..8ca3e637 --- /dev/null +++ b/ale_linters/python/mypy.vim @@ -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', +\}) |