summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-20 11:07:07 +0100
committerw0rp <devw0rp@gmail.com>2017-07-20 11:07:07 +0100
commita5f754a5e0271925cfcc3d5eb084863e7bf3a98c (patch)
treec32e7845619ad954a7f70d9eefa58cfb1439a488 /autoload
parentf133ce96f8d0abc7d17bffa8b5317fccf3bbd347 (diff)
downloadale-a5f754a5e0271925cfcc3d5eb084863e7bf3a98c.zip
Fix #786 - Only set --no-local-style for yapf if a configuration file is detected
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/yapf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/fixers/yapf.vim b/autoload/ale/fixers/yapf.vim
index 7d6dfdcb..ba7453b8 100644
--- a/autoload/ale/fixers/yapf.vim
+++ b/autoload/ale/fixers/yapf.vim
@@ -17,10 +17,10 @@ function! ale#fixers#yapf#Fix(buffer) abort
let l:config = ale#path#FindNearestFile(a:buffer, '.style.yapf')
let l:config_options = !empty(l:config)
- \ ? ' --style ' . ale#Escape(l:config)
+ \ ? ' --no-local-style --style ' . ale#Escape(l:config)
\ : ''
return {
- \ 'command': ale#Escape(l:executable) . ' --no-local-style' . l:config_options,
+ \ 'command': ale#Escape(l:executable) . l:config_options,
\}
endfunction