mypy.vim (537B)
1 " Vim compiler file 2 " Compiler: Mypy (Python static checker) 3 " Maintainer: @Konfekt 4 " Last Change: 2025 Nov 06 5 6 if exists("current_compiler") | finish | endif 7 let current_compiler = "mypy" 8 9 let s:cpo_save = &cpo 10 set cpo&vim 11 12 " CompilerSet makeprg=mypy 13 exe 'CompilerSet makeprg=' .. escape('mypy --show-column-numbers ' 14 \ ..get(b:, 'mypy_makeprg_params', get(g:, 'mypy_makeprg_params', '--strict --ignore-missing-imports')), 15 \ ' \|"') 16 CompilerSet errorformat=%f:%l:%c:\ %t%*[^:]:\ %m 17 18 let &cpo = s:cpo_save 19 unlet s:cpo_save