diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-11-09 09:31:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-09 09:31:52 +0800 |
commit | b7e1bbfb50c78352e31a6b27f430db3c8f4fbf1d (patch) | |
tree | bd284a9d68f1c0f83d7bdf50fc2924d3003f9265 /runtime/compiler/pylint.vim | |
parent | 5a27d02584656f35d757c01f10a1d3c88910c519 (diff) | |
parent | c914ecf4c930f247123ec40ffc4b59461cd1a1f2 (diff) | |
download | rneovim-b7e1bbfb50c78352e31a6b27f430db3c8f4fbf1d.tar.gz rneovim-b7e1bbfb50c78352e31a6b27f430db3c8f4fbf1d.tar.bz2 rneovim-b7e1bbfb50c78352e31a6b27f430db3c8f4fbf1d.zip |
Merge pull request #31130 from zeertzjq/vim-3780c11
vim-patch: runtime file updates
Diffstat (limited to 'runtime/compiler/pylint.vim')
-rw-r--r-- | runtime/compiler/pylint.vim | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/runtime/compiler/pylint.vim b/runtime/compiler/pylint.vim index 14e9696dbb..59408b4750 100644 --- a/runtime/compiler/pylint.vim +++ b/runtime/compiler/pylint.vim @@ -1,13 +1,21 @@ " Vim compiler file -" Compiler: Pylint for Python -" Maintainer: Daniel Moch <daniel@danielmoch.com> -" Last Change: 2016 May 20 -" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) - -if exists("current_compiler") - finish -endif +" Compiler: Pylint for Python +" Maintainer: Daniel Moch <daniel@danielmoch.com> +" Last Change: 2024 Nov 07 by The Vim Project (added params variable) + +if exists("current_compiler") | finish | endif let current_compiler = "pylint" -CompilerSet makeprg=pylint\ --output-format=text\ --msg-template=\"{path}:{line}:{column}:{C}:\ [{symbol}]\ {msg}\"\ --reports=no +let s:cpo_save = &cpo +set cpo&vim + +" CompilerSet makeprg=ruff +let &l:makeprg = 'pylint ' . + \ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' . + \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", + \ (executable('getconf') ? '--jobs='..systemlist('getconf _NPROCESSORS_ONLN')[0] : ''))) +exe 'CompilerSet makeprg='..escape(&l:makeprg, ' "') CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save |