mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-18 20:11:25 +08:00
Add python_auto_pipenv config var for all python linters.
This allows a user to set one variable instead of eight.
This commit is contained in:
1 parent
56e67c5811
commit
dbe9352935
10 files changed
+26
-8
No files matched your search
@@ -12,7 +12,8 @@ function! s:UsingModule(buffer) abort
|
||||
endfunction
|
||||
|
||||
function! ale_linters#python#flake8#GetExecutable(buffer) abort
|
||||
if ale#Var(a:buffer, 'python_flake8_auto_pipenv') && ale#python#PipenvPresent(a:buffer)
|
||||
if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_flake8_auto_pipenv'))
|
||||
\ && ale#python#PipenvPresent(a:buffer)
|
||||
return 'pipenv'
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user