Merge pull request #1625 from elebow/flake8-pipenv-run

Allow flake8 executable to be set to `pipenv`.
This commit is contained in:
w0rp
2018-06-03 18:52:15 +01:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -174,3 +174,11 @@ Execute(Using `python -m flake8` should be supported for running flake8):
\ ale#path#BufferCdString(bufnr(''))
\ . ale#Escape('python') . ' -m flake8 --some-option --format=default -',
\ ale_linters#python#flake8#GetCommand(bufnr(''), ['2.9.9'])
Execute(Setting executable to 'pipenv' appends 'run flake8'):
let g:ale_python_flake8_executable = 'path/to/pipenv'
AssertEqual
\ ale#path#BufferCdString(bufnr(''))
\ . ale#Escape('path/to/pipenv') . ' run flake8 --format=default --stdin-display-name %s -',
\ ale_linters#python#flake8#GetCommand(bufnr(''), ['3.0.0'])