summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorAndrej Radovic <r.andrej@gmail.com>2018-07-14 13:26:50 +0200
committerAndrej Radovic <r.andrej@gmail.com>2018-07-14 13:26:50 +0200
commit976c048e6e1175ecd4a937926373c155c2e61c11 (patch)
treef80f816f5792d04e82ee7d9e46f797cbbf25ed1e /autoload
parent870e75eb64c8d5cd19dc381464345003cfa33ccf (diff)
downloadale-976c048e6e1175ecd4a937926373c155c2e61c11.zip
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.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/python.vim2
1 files changed, 2 insertions, 0 deletions
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