]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): update pylint linter
authorKonfekt <Konfekt@users.noreply.github.com>
Tue, 12 Nov 2024 19:48:31 +0000 (20:48 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 12 Nov 2024 19:48:31 +0000 (20:48 +0100)
closes: #16039

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/pylint.vim
runtime/doc/quickfix.txt

index 59408b475083d6d100f9206c38945b17333395d6..4c9c23e125b76744f732f6c22df8a85b209308c7 100644 (file)
@@ -12,8 +12,7 @@ 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] : '')))
+      \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=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%.%#
 
index 48f192a7b809798d1e8864cfc2e30e29749b1697..671630d66781a7d63384d9ec31d6a77f758adb3f 100644 (file)
@@ -1,4 +1,4 @@
-*quickfix.txt*  For Vim version 9.1.  Last change: 2024 Nov 10
+*quickfix.txt*  For Vim version 9.1.  Last change: 2024 Nov 12
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1419,7 +1419,7 @@ RUFF LINTER                                               *compiler-ruff*
 Commonly used compiler options can be added to 'makeprg' by setting the
 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".
 
@@ -1428,10 +1428,9 @@ PYLINT LINTER                                            *compiler-pylint*
 Commonly used compiler options can be added to 'makeprg' by setting the
 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
-by getconf, if executable. Otherwise it defaults to "".
+The global default is "--jobs=0" to use (almost) all cores.
 
 PYUNIT COMPILER                                                *compiler-pyunit*