mirror of https://github.com/dense-analysis/ale
Merge pull request #3398 from ecly/update-python-find-root
Update `ale#python#FindProjectRootIni` with poetry.lock and pyproject.toml
This commit is contained in:
commit
aabca5b0ac
|
@ -32,6 +32,8 @@ function! ale#python#FindProjectRootIni(buffer) abort
|
||||||
\|| filereadable(l:path . '/.pylintrc')
|
\|| filereadable(l:path . '/.pylintrc')
|
||||||
\|| filereadable(l:path . '/Pipfile')
|
\|| filereadable(l:path . '/Pipfile')
|
||||||
\|| filereadable(l:path . '/Pipfile.lock')
|
\|| filereadable(l:path . '/Pipfile.lock')
|
||||||
|
\|| filereadable(l:path . '/poetry.lock')
|
||||||
|
\|| filereadable(l:path . '/pyproject.toml')
|
||||||
return l:path
|
return l:path
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
|
@ -36,6 +36,8 @@ ALE will look for configuration files with the following filenames. >
|
||||||
.pylintrc
|
.pylintrc
|
||||||
Pipfile
|
Pipfile
|
||||||
Pipfile.lock
|
Pipfile.lock
|
||||||
|
poetry.lock
|
||||||
|
pyproject.toml
|
||||||
<
|
<
|
||||||
|
|
||||||
The first directory containing any of the files named above will be used.
|
The first directory containing any of the files named above will be used.
|
||||||
|
|
Loading…
Reference in New Issue