vim-patch:210c49b: runtime(compiler): update pylint linter (#31191)

closes: vim/vim#16039

210c49bbe8

Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
This commit is contained in:
zeertzjq 2024-11-13 16:00:35 +08:00 committed by GitHub
parent 28bf25d012
commit eaf5ae6cc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -12,8 +12,7 @@ set cpo&vim
" CompilerSet makeprg=ruff " CompilerSet makeprg=ruff
let &l:makeprg = 'pylint ' . let &l:makeprg = 'pylint ' .
\ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' . \ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' .
\ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=0'))
\ (executable('getconf') ? '--jobs='..systemlist('getconf _NPROCESSORS_ONLN')[0] : '')))
exe 'CompilerSet makeprg='..escape(&l:makeprg, ' "') 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%.%# CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#

View File

@ -1380,7 +1380,7 @@ RUFF LINTER *compiler-ruff*
Commonly used compiler options can be added to 'makeprg' by setting the Commonly used compiler options can be added to 'makeprg' by setting the
b/g:ruff_makeprg_params variable. For example: > b/g:ruff_makeprg_params variable. For example: >
let b:ruff_makeprg_params = "--max-line-length"..&textwidth let b:ruff_makeprg_params = "--max-line-length "..&textwidth
The global default is "--preview". The global default is "--preview".
@ -1389,10 +1389,9 @@ PYLINT LINTER *compiler-pylint*
Commonly used compiler options can be added to 'makeprg' by setting the Commonly used compiler options can be added to 'makeprg' by setting the
b/g:pylint_makeprg_params variable. For example: > b/g:pylint_makeprg_params variable. For example: >
let b:pylint_makeprg_params = "--max-line-length"..&textwidth let b:pylint_makeprg_params = "--max-line-length "..&textwidth
The global default is "--jobs=n" where n is the number of cores as reported The global default is "--jobs=0" to use (almost) all cores.
by getconf, if executable. Otherwise it defaults to "".
PYUNIT COMPILER *compiler-pyunit* PYUNIT COMPILER *compiler-pyunit*