diff options
author | Fionn Fitzmaurice <1897918+fionn@users.noreply.github.com> | 2022-05-15 11:20:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 12:20:16 +0900 |
commit | e6ca599e87a0cfc9efc2fe7dd104a6c61d0bf8e4 (patch) | |
tree | 0d69ea5619377c070badc8e6679bfb541fb1759a | |
parent | 044a6c956bfb557ec6c6d37921db6ee11de879f9 (diff) | |
download | ale-e6ca599e87a0cfc9efc2fe7dd104a6c61d0bf8e4.zip |
Look for .mypy.ini when finding project root (#4202)
We already check for mypy.ini, but the fallback .mypy.ini was ignored.
-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 81cb06e0..4dc01798 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -26,6 +26,7 @@ function! ale#python#FindProjectRootIni(buffer) abort \|| filereadable(l:path . '/tox.ini') \|| filereadable(l:path . '/.pyre_configuration.local') \|| filereadable(l:path . '/mypy.ini') + \|| filereadable(l:path . '/.mypy.ini') \|| filereadable(l:path . '/pycodestyle.cfg') \|| filereadable(l:path . '/.flake8') \|| filereadable(l:path . '/.flake8rc') diff --git a/doc/ale-python.txt b/doc/ale-python.txt index 42805828..8c380e25 100644 --- a/doc/ale-python.txt +++ b/doc/ale-python.txt @@ -39,6 +39,7 @@ ALE will look for configuration files with the following filenames. > tox.ini .pyre_configuration.local mypy.ini + .mypy.ini pycodestyle.cfg .flake8 .flake8rc |