summaryrefslogtreecommitdiff
path: root/autoload/ale/python.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ale/python.vim')
-rw-r--r--autoload/ale/python.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim
index 40433d17..ee856a27 100644
--- a/autoload/ale/python.vim
+++ b/autoload/ale/python.vim
@@ -2,6 +2,7 @@
" Description: Functions for integrating with Python linters.
call ale#Set('python_auto_pipenv', '0')
+call ale#Set('python_auto_poetry', '0')
let s:sep = has('win32') ? '\' : '/'
" bin is used for Unix virtualenv directories, and Scripts is for Windows.
@@ -158,3 +159,8 @@ endfunction
function! ale#python#PipenvPresent(buffer) abort
return findfile('Pipfile.lock', expand('#' . a:buffer . ':p:h') . ';') isnot# ''
endfunction
+
+" Detects whether a poetry environment is present.
+function! ale#python#PoetryPresent(buffer) abort
+ return findfile('poetry.lock', expand('#' . a:buffer . ':p:h') . ';') isnot# ''
+endfunction