From f125c11faa778f30fcd775b4104a2271dccf6b6c Mon Sep 17 00:00:00 2001 From: ecly Date: Thu, 15 Oct 2020 13:35:47 +0200 Subject: [PATCH] Update FindProjectRootIni with poetry.lock and pyproject.toml --- autoload/ale/python.vim | 2 ++ doc/ale-python.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 7ed22367..fc6c1130 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -32,6 +32,8 @@ function! ale#python#FindProjectRootIni(buffer) abort \|| filereadable(l:path . '/.pylintrc') \|| filereadable(l:path . '/Pipfile') \|| filereadable(l:path . '/Pipfile.lock') + \|| filereadable(l:path . '/poetry.lock') + \|| filereadable(l:path . '/pyproject.toml') return l:path endif endfor diff --git a/doc/ale-python.txt b/doc/ale-python.txt index 6b1a6d33..1cc97a88 100644 --- a/doc/ale-python.txt +++ b/doc/ale-python.txt @@ -36,6 +36,8 @@ ALE will look for configuration files with the following filenames. > .pylintrc Pipfile Pipfile.lock + poetry.lock + pyproject.toml < The first directory containing any of the files named above will be used.