From 2ac9e454d6de728f8eaa93a3e5eaedae79d25b6d Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Wed, 1 Aug 2018 20:07:11 -0700 Subject: [PATCH] python: add lookup path for flake8 config --- autoload/ale/python.vim | 1 + doc/ale-python.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index bc1cc980..1f963431 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -24,6 +24,7 @@ function! ale#python#FindProjectRootIni(buffer) abort \|| filereadable(l:path . '/mypy.ini') \|| filereadable(l:path . '/pycodestyle.cfg') \|| filereadable(l:path . '/flake8.cfg') + \|| filereadable(l:path . '/.flake8rc') \|| filereadable(l:path . '/Pipfile') \|| filereadable(l:path . '/Pipfile.lock') return l:path diff --git a/doc/ale-python.txt b/doc/ale-python.txt index 093ea758..b5c469b1 100644 --- a/doc/ale-python.txt +++ b/doc/ale-python.txt @@ -22,6 +22,7 @@ ALE will look for configuration files with the following filenames. > mypy.ini pycodestyle.cfg flake8.cfg + .flake8rc Pipfile Pipfile.lock <