robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
af5ac171bd
master
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 8if exists ( "current_compiler" ) |finish |endif 9let current_compiler = "pylint" 10 11let s: cpo_save = & cpo 12set cpo & vim 13 14" CompilerSet makeprg=ruff 15exe '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 \' \|"' ) 19CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%# 20 21let & cpo = s: cpo_save 22unlet s: cpo_save