summaryrefslogtreecommitdiff
path: root/ale_linters/python/pyflakes.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/python/pyflakes.vim')
-rw-r--r--ale_linters/python/pyflakes.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/python/pyflakes.vim b/ale_linters/python/pyflakes.vim
index 33410562..091408d5 100644
--- a/ale_linters/python/pyflakes.vim
+++ b/ale_linters/python/pyflakes.vim
@@ -6,7 +6,8 @@ call ale#Set('python_pyflakes_use_global', get(g:, 'ale_use_global_executables',
call ale#Set('python_pyflakes_auto_pipenv', 0)
function! ale_linters#python#pyflakes#GetExecutable(buffer) abort
- if ale#Var(a:buffer, 'python_pyflakes_auto_pipenv') && ale#python#PipenvPresent(a:buffer)
+ if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_pyflakes_auto_pipenv'))
+ \ && ale#python#PipenvPresent(a:buffer)
return 'pipenv'
endif