From 57736cdcccf46e0d6252b556e9a2b2a56a634754 Mon Sep 17 00:00:00 2001 From: "Eric N. Vander Weele" Date: Sat, 18 May 2019 09:42:19 -0400 Subject: Change Python project root dir detection for flake8 configuration The official configuration files for `flake8` are `.flake8`, `tox.ini`, and `setup.cfg`. After investigation, it is safe to remove `flake8.cfg` as it appears to only exist as a typo in other tooling documentation (e.g., `python-language-server`). Even though no linters automatically read `.flake8rc`, it is kept in case projects may be using it for detecting the projects root directory. --- autoload/ale/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 2f28214b..7ed22367 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -25,7 +25,7 @@ function! ale#python#FindProjectRootIni(buffer) abort \|| filereadable(l:path . '/tox.ini') \|| filereadable(l:path . '/mypy.ini') \|| filereadable(l:path . '/pycodestyle.cfg') - \|| filereadable(l:path . '/flake8.cfg') + \|| filereadable(l:path . '/.flake8') \|| filereadable(l:path . '/.flake8rc') \|| filereadable(l:path . '/pylama.ini') \|| filereadable(l:path . '/pylintrc') -- cgit v1.2.3