From 976c048e6e1175ecd4a937926373c155c2e61c11 Mon Sep 17 00:00:00 2001 From: Andrej Radovic Date: Sat, 14 Jul 2018 13:26:50 +0200 Subject: Detect Python proj. roots by Pipfile "Pipfile" and "Pipfile.lock" files are also often located in Python module or package directories and their presence is an okay heuristic for finding project roots. --- autoload/ale/python.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 7dc4a54c..bc1cc980 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -24,6 +24,8 @@ function! ale#python#FindProjectRootIni(buffer) abort \|| filereadable(l:path . '/mypy.ini') \|| filereadable(l:path . '/pycodestyle.cfg') \|| filereadable(l:path . '/flake8.cfg') + \|| filereadable(l:path . '/Pipfile') + \|| filereadable(l:path . '/Pipfile.lock') return l:path endif endfor -- cgit v1.2.3