All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_python_yapf_executable
4 " Use an invalid global executable, so we don't match it.
5 let g:ale_python_yapf_executable = 'xxxinvalid'
7 call ale#test#SetDirectory('/testplugin/test/fixers')
9 let b:bin_dir = has('win32') ? 'Scripts' : 'bin'
16 call ale#test#RestoreDirectory()
18 Execute(The yapf should include the .style.yapf file if present):
19 call ale#test#SetFilename('../test-files/python/with_virtualenv/dir_with_yapf_config/foo/bar.py')
24 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/yapf'))
25 \ . ' --no-local-style'
26 \ . ' --style ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/dir_with_yapf_config/.style.yapf')),
28 \ ale#fixers#yapf#Fix(bufnr(''))
30 Execute(pipenv is detected when python_yapf_auto_pipenv is set):
31 let g:ale_python_yapf_auto_pipenv = 1
33 call ale#test#SetFilename('../test-files/python/pipenv/whatever.py')
37 \ 'command': ale#Escape('pipenv') . ' run yapf',
39 \ ale#fixers#yapf#Fix(bufnr(''))
41 Execute(Poetry is detected when python_yapf_auto_poetry is set):
42 let g:ale_python_yapf_auto_poetry = 1
44 call ale#test#SetFilename('../test-files/python/poetry/whatever.py')
48 \ 'command': ale#Escape('poetry') . ' run yapf',
50 \ ale#fixers#yapf#Fix(bufnr(''))
52 Execute(uv is detected when python_yapf_auto_uv is set):
53 let g:ale_python_yapf_auto_uv = 1
55 call ale#test#SetFilename('../test-files/python/uv/whatever.py')
59 \ 'command': ale#Escape('uv') . ' run yapf',
61 \ ale#fixers#yapf#Fix(bufnr(''))