mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Allow all Python linter executables to be set to pipenv.
It appends ` run {linter_name}`, analogously to the Ruby linters when
the executable is set to `bundle`
This commit is contained in:
@@ -25,3 +25,10 @@ Execute(The pycodestyle executable should be configurable):
|
||||
|
||||
AssertEqual ale#Escape('~/.local/bin/pycodestyle') . ' -',
|
||||
\ ale_linters#python#pycodestyle#GetCommand(bufnr(''))
|
||||
|
||||
Execute(Setting executable to 'pipenv' appends 'run pycodestyle'):
|
||||
let g:ale_python_pycodestyle_executable = 'path/to/pipenv'
|
||||
|
||||
AssertEqual
|
||||
\ ale#Escape('path/to/pipenv') . ' run pycodestyle -',
|
||||
\ ale_linters#python#pycodestyle#GetCommand(bufnr(''))
|
||||
|
||||
Reference in New Issue
Block a user