mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-08 20:43:31 +08:00
Add test for python_black_auto_pipenv
This commit is contained in:
@@ -37,3 +37,10 @@ Execute(The black callback should include options):
|
|||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --some-option -' },
|
\ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --some-option -' },
|
||||||
\ ale#fixers#black#Fix(bufnr(''))
|
\ ale#fixers#black#Fix(bufnr(''))
|
||||||
|
|
||||||
|
Execute(Pipenv is detected when python_black_auto_pipenv is set):
|
||||||
|
let g:ale_python_black_auto_pipenv = 1
|
||||||
|
|
||||||
|
AssertEqual
|
||||||
|
\ {'command': 'pipenv run mypy' },
|
||||||
|
\ ale#fixers#black#Fix(bufnr(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user