Merge pull request #2502 from ericvw/flake8-config

Change Python project root dir detection for flake8 configuration
This commit is contained in:
w0rp
2019-05-21 00:15:12 +01:00
committed by GitHub
5 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
Before:
call ale#test#SetDirectory('/testplugin/test')
After:
call ale#test#RestoreDirectory()
Execute(Detect root of Python project with .flake8 correctly):
call ale#test#SetFilename('python-test-files/python-package-project/package-name/module.py')
AssertEqual
\ ale#path#Simplify(g:dir . '/python-test-files/python-package-project'),
\ ale#python#FindProjectRoot(bufnr(''))