diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-01-15 13:05:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-15 13:05:37 +0000 |
commit | 35bdd6f478493b3fcad6a21b19884cdfb7fff3ac (patch) | |
tree | b6c69703656b822d88b21d540c2e6328a34e6717 /ale_linters | |
parent | f1ac7c9f737b43c7de0715923b10c2be76cbc9ed (diff) | |
parent | 4566bd65c91d63056bb7801a1a6f5f3d39e11e3f (diff) | |
download | ale-35bdd6f478493b3fcad6a21b19884cdfb7fff3ac.zip |
Merge pull request #237 from keith/ks/mypy-linter
Add python mypy support
Diffstat (limited to 'ale_linters')
-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', +\}) |