Added g:pymode_lint_external_python · python-mode/python-mode@41fcdb3 · GitHub
Skip to content

Commit 41fcdb3

Browse files
committed
Added g:pymode_lint_external_python
When set, linting is performed using the given external Python binary. Allows linting to be performed against a different version of Python than what Vim was compiled with.
1 parent fd70ac2 commit 41fcdb3

3 files changed

Lines changed: 150 additions & 31 deletions

File tree

doc/pymode.txt

Lines changed: 9 additions & 1 deletion

plugin/pymode.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,15 @@ call pymode#default("g:pymode_lint_select", "")
117117
" Auto open cwindow if any errors has been finded
118118
call pymode#default("g:pymode_lint_cwindow", 1)
119119

120-
" If not emply, errors will be sort by defined relevance
120+
" If not empty, errors will be sort by defined relevance
121121
" E.g. let g:pymode_lint_sort = ['E', 'C', 'I'] " Errors first 'E',
122122
" after them 'C' and ...
123123
call pymode#default("g:pymode_lint_sort", [])
124124

125+
" If not empty, run lint using the given Python binary
126+
" instead of vim's built-in Python.
127+
call pymode#default("g:pymode_lint_external_python", "")
128+
125129
" Place error signs
126130
call pymode#default("g:pymode_lint_signs", 1)
127131

pymode/lint.py

Lines changed: 136 additions & 29 deletions

0 commit comments

Comments
 (0)