mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 12:25:17 +00:00
7d8fb2ba17
* Add poetry support to python linters and black fixer. * Update python.vim to detect poetry project. * Update ale.vim, add an option for poetry `g:ale_python_auto_poetry`. * Update ale-python.txt, add poetry support. * Add and update poetry related tests. Co-authored-by: unc0 <unc0@users.noreply.github.com>
20 lines
533 B
Plaintext
20 lines
533 B
Plaintext
Before:
|
|
call ale#test#SetDirectory('/testplugin/test')
|
|
|
|
After:
|
|
call ale#test#RestoreDirectory()
|
|
|
|
Execute(ale#python#PipenvPresent is true when a pipenv environment is present):
|
|
call ale#test#SetFilename('test-files/python/pipenv/whatever.py')
|
|
|
|
AssertEqual
|
|
\ ale#python#PipenvPresent(bufnr('%')),
|
|
\ 1
|
|
|
|
Execute(ale#python#PipenvPresent is false when no pipenv environment is present):
|
|
call ale#test#SetFilename('test-files/python/no_pipenv/whatever.py')
|
|
|
|
AssertEqual
|
|
\ ale#python#PipenvPresent(bufnr('%')),
|
|
\ 0
|