mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-11 23:50:14 +08:00
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.
This commit is contained in:
1 parent
870e75eb64
commit
976c048e6e
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user