diff options
author | Andrej Radovic <r.andrej@gmail.com> | 2018-07-14 13:26:50 +0200 |
---|---|---|
committer | Andrej Radovic <r.andrej@gmail.com> | 2018-07-14 13:26:50 +0200 |
commit | 976c048e6e1175ecd4a937926373c155c2e61c11 (patch) | |
tree | f80f816f5792d04e82ee7d9e46f797cbbf25ed1e | |
parent | 870e75eb64c8d5cd19dc381464345003cfa33ccf (diff) | |
download | ale-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.
-rw-r--r-- | autoload/ale/python.vim | 2 |
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 |