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 call ale#assert#SetUpLinterTest('python', 'prospector')
5 call ale#assert#TearDownLinterTest()
7 Execute(Setting executable to 'pipenv' appends 'run prospector'):
8 let g:ale_python_prospector_executable = 'path/to/pipenv'
10 AssertLinter 'path/to/pipenv',
11 \ ale#Escape('path/to/pipenv') . ' run prospector'
12 \ . ' --messages-only --absolute-paths --zero-exit --output-format json %s'
14 Execute(Pipenv is detected when python_prospector_auto_pipenv is set):
15 let g:ale_python_prospector_auto_pipenv = 1
16 call ale#test#SetFilename('../test-files/python/pipenv/whatever.py')
18 AssertLinter 'pipenv',
19 \ ale#Escape('pipenv') . ' run prospector'
20 \ . ' --messages-only --absolute-paths --zero-exit --output-format json %s'
22 Execute(Setting executable to 'poetry' appends 'run prospector'):
23 let g:ale_python_prospector_executable = 'path/to/poetry'
25 AssertLinter 'path/to/poetry',
26 \ ale#Escape('path/to/poetry') . ' run prospector'
27 \ . ' --messages-only --absolute-paths --zero-exit --output-format json %s'
29 Execute(Poetry is detected when python_prospector_auto_poetry is set):
30 let g:ale_python_prospector_auto_poetry = 1
31 call ale#test#SetFilename('../test-files/python/poetry/whatever.py')
33 AssertLinter 'poetry',
34 \ ale#Escape('poetry') . ' run prospector'
35 \ . ' --messages-only --absolute-paths --zero-exit --output-format json %s'
37 Execute(uv is detected when python_prospector_auto_uv is set):
38 let g:ale_python_prospector_auto_uv = 1
39 call ale#test#SetFilename('../test-files/python/uv/whatever.py')
42 \ ale#Escape('uv') . ' run prospector'
43 \ . ' --messages-only --absolute-paths --zero-exit --output-format json %s'