diff options
author | Eric N. Vander Weele <ericvw@gmail.com> | 2019-05-18 09:42:19 -0400 |
---|---|---|
committer | Eric N. Vander Weele <ericvw@gmail.com> | 2019-05-19 09:51:26 -0400 |
commit | 57736cdcccf46e0d6252b556e9a2b2a56a634754 (patch) | |
tree | 8dbe9f14c04770972f167bdc36aec14c5dc85f8b /autoload | |
parent | 57b9d8bc0ed71639a666d81f916515a1439d6aeb (diff) | |
download | ale-57736cdcccf46e0d6252b556e9a2b2a56a634754.zip |
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.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/python.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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') |