diff options
author | Oliver Albertini <oliverralbertini@users.noreply.github.com> | 2021-09-15 05:07:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 21:07:45 +0900 |
commit | f769f64c079d2f3216559234fb92673182089267 (patch) | |
tree | c2266520dd129a489b1178c87b6cb34066f8d3d6 /test/linter | |
parent | 19437e25d05950ab83dce285b4b8ec5166e06dba (diff) | |
download | ale-f769f64c079d2f3216559234fb92673182089267.zip |
[ale-python-root] add `.pyre_configuration.local` to list of files (#3900)
Without this, we have one `pyre` process running across different pyre
projects. With this change, files in different projects can be linted
with pyre at the same time.
Co-authored-by: Oliver Ruben Albertini <ora@fb.com>
Diffstat (limited to 'test/linter')
-rw-r--r-- | test/linter/test_pyre.vader | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/linter/test_pyre.vader b/test/linter/test_pyre.vader index 335e31f2..53f84e6f 100644 --- a/test/linter/test_pyre.vader +++ b/test/linter/test_pyre.vader @@ -57,3 +57,10 @@ Execute(Poetry is detected when python_pyre_auto_poetry is set): AssertLinter 'poetry', \ ale#Escape('poetry') . ' run pyre persistent' + +Execute(The FindProjectRoot should detect the project root directory for namespace package via .pyre_configuration.local): + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/pyre_configuration_dir/foo/bar.py') + + AssertEqual + \ ale#path#Simplify(g:dir . '/../test-files/python/pyre_configuration_dir'), + \ ale#python#FindProjectRoot(bufnr('')) |