Move --format=default in the flake8 command to the return value, and remove extra spaces in the tests

This commit is contained in:
w0rp 2017-08-10 09:58:32 +01:00
parent abcf2909e6
commit b9f31621e4
2 changed files with 5 additions and 5 deletions

View File

@ -80,10 +80,10 @@ function! ale_linters#python#flake8#GetCommand(buffer, version_output) abort
\ : ''
let l:options = ale#Var(a:buffer, 'python_flake8_options')
\ . ' --format=default'
return ale#Escape(ale_linters#python#flake8#GetExecutable(a:buffer))
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' --format=default'
\ . l:display_name_args . ' -'
endfunction