neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

pylint.vim (848B)


      1 " Vim compiler file
      2 " Compiler:     Pylint for Python
      3 " Maintainer:   Daniel Moch <daniel@danielmoch.com>
      4 " Last Change:  2024 Nov 07 by The Vim Project (added params variable)
      5 "		2024 Nov 19 by the Vim Project (properly escape makeprg setting)
      6 "		2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)
      7 
      8 if exists("current_compiler") | finish | endif
      9 let current_compiler = "pylint"
     10 
     11 let s:cpo_save = &cpo
     12 set cpo&vim
     13 
     14 " CompilerSet makeprg=ruff
     15 exe 'CompilerSet makeprg=' .. escape('pylint ' .
     16      \ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' .
     17      \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=0')),
     18      \ ' \|"')
     19 CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#
     20 
     21 let &cpo = s:cpo_save
     22 unlet s:cpo_save