diff options
author | Travis Cline <travis.cline@gmail.com> | 2018-08-01 20:07:11 -0700 |
---|---|---|
committer | Travis Cline <travis.cline@gmail.com> | 2018-08-01 20:07:11 -0700 |
commit | 2ac9e454d6de728f8eaa93a3e5eaedae79d25b6d (patch) | |
tree | b549e9a7bdc669e6b082b427b52c56827152783f | |
parent | 3aa5e0f9dc615ba8e30ef5a2e978d2c8a7fea17f (diff) | |
download | ale-2ac9e454d6de728f8eaa93a3e5eaedae79d25b6d.zip |
python: add lookup path for flake8 config
-rw-r--r-- | autoload/ale/python.vim | 1 | ||||
-rw-r--r-- | doc/ale-python.txt | 1 |
2 files changed, 2 insertions, 0 deletions
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 < |