Skip to content

Commit 210c49b

Browse files
Konfektchrisbra
authored andcommitted
runtime(compiler): update pylint linter
closes: #16039 Signed-off-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 24078e3 commit 210c49b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

runtime/compiler/pylint.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ set cpo&vim
1212
" CompilerSet makeprg=ruff
1313
let &l:makeprg = 'pylint ' .
1414
\ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' .
15-
\ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params",
16-
\ (executable('getconf') ? '--jobs='..systemlist('getconf _NPROCESSORS_ONLN')[0] : '')))
15+
\ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=0'))
1716
exe 'CompilerSet makeprg='..escape(&l:makeprg, ' "')
1817
CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#
1918

runtime/doc/quickfix.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 9.1. Last change: 2024 Nov 10
1+
*quickfix.txt* For Vim version 9.1. Last change: 2024 Nov 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1419,7 +1419,7 @@ RUFF LINTER *compiler-ruff*
14191419
Commonly used compiler options can be added to 'makeprg' by setting the
14201420
b/g:ruff_makeprg_params variable. For example: >
14211421
1422-
let b:ruff_makeprg_params = "--max-line-length"..&textwidth
1422+
let b:ruff_makeprg_params = "--max-line-length "..&textwidth
14231423
14241424
The global default is "--preview".
14251425

@@ -1428,10 +1428,9 @@ PYLINT LINTER *compiler-pylint*
14281428
Commonly used compiler options can be added to 'makeprg' by setting the
14291429
b/g:pylint_makeprg_params variable. For example: >
14301430
1431-
let b:pylint_makeprg_params = "--max-line-length"..&textwidth
1431+
let b:pylint_makeprg_params = "--max-line-length "..&textwidth
14321432
1433-
The global default is "--jobs=n" where n is the number of cores as reported
1434-
by getconf, if executable. Otherwise it defaults to "".
1433+
The global default is "--jobs=0" to use (almost) all cores.
14351434

14361435
PYUNIT COMPILER *compiler-pyunit*
14371436

0 commit comments

Comments
 (0)