Fix #680 - Use --shadow-file to check for problems with mypy while you type

This commit is contained in:
w0rp
2017-06-27 10:06:03 +01:00
parent 499bf63dc3
commit 16ba9bd680
7 changed files with 23 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ function! ale#fixers#autopep8#Fix(buffer) abort
\ ['/bin/autopep8'],
\)
if empty(l:executable)
if !executable(l:executable)
return 0
endif

View File

@@ -11,7 +11,7 @@ function! ale#fixers#isort#Fix(buffer) abort
\ ['/bin/isort'],
\)
if empty(l:executable)
if !executable(l:executable)
return 0
endif

View File

@@ -11,7 +11,7 @@ function! ale#fixers#yapf#Fix(buffer) abort
\ ['/bin/yapf'],
\)
if empty(l:executable)
if !executable(l:executable)
return 0
endif

View File

@@ -58,11 +58,5 @@ function! ale#python#FindExecutable(buffer, base_var_name, path_list) abort
endfor
endif
let l:global_executable = ale#Var(a:buffer, a:base_var_name . '_executable')
if executable(l:global_executable)
return l:global_executable
endif
return ''
return ale#Var(a:buffer, a:base_var_name . '_executable')
endfunction