mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-14 03:41:00 +08:00
Split up the flake8 and ansible-lint handlers
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
" Description: Fixing files with autopep8.
|
||||
|
||||
function! ale#fixers#autopep8#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#python#GetExecutable(a:buffer, 'autopep8')
|
||||
let l:executable = ale#python#GetExecutable(a:buffer, 'autopep8')
|
||||
if empty(l:executable)
|
||||
return 0
|
||||
endif
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Description: Fixing Python imports with isort.
|
||||
|
||||
function! ale#fixers#isort#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#python#GetExecutable(a:buffer, 'isort')
|
||||
let l:executable = ale#python#GetExecutable(a:buffer, 'isort')
|
||||
if empty(l:executable)
|
||||
return 0
|
||||
endif
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Description: Fixing Python files with yapf.
|
||||
|
||||
function! ale#fixers#yapf#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#python#GetExecutable(a:buffer, 'yapf')
|
||||
let l:executable = ale#python#GetExecutable(a:buffer, 'yapf')
|
||||
if empty(l:executable)
|
||||
return 0
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user