summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorEddie Lebow <elebow@users.noreply.github.com>2018-06-02 21:49:12 -0400
committerEddie Lebow <elebow@users.noreply.github.com>2018-06-02 21:49:12 -0400
commitdd642b117c2a9fd9bba9a452d147526e9858ec0d (patch)
tree52082801da8565ed2ace329258da768917c6717f /test/command_callback
parent786fc0a62f2d45b88967aad6d59bb9c483a576ae (diff)
downloadale-dd642b117c2a9fd9bba9a452d147526e9858ec0d.zip
Allow flake8 executable to be set to `pipenv`.
It appends ` run flake8`, analogously to the Ruby tools when the executable is set to `bundle`
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_flake8_command_callback.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command_callback/test_flake8_command_callback.vader b/test/command_callback/test_flake8_command_callback.vader
index ecd06332..1cc50836 100644
--- a/test/command_callback/test_flake8_command_callback.vader
+++ b/test/command_callback/test_flake8_command_callback.vader
@@ -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'])