]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_prospector.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / linter / test_prospector.vader
1 Before:
2   call ale#assert#SetUpLinterTest('python', 'prospector')
3
4 After:
5   call ale#assert#TearDownLinterTest()
6
7 Execute(Setting executable to 'pipenv' appends 'run prospector'):
8   let g:ale_python_prospector_executable = 'path/to/pipenv'
9
10   AssertLinter 'path/to/pipenv',
11   \ ale#Escape('path/to/pipenv') . ' run prospector'
12   \   .  '  --messages-only --absolute-paths --zero-exit --output-format json %s'
13
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')
17
18   AssertLinter 'pipenv',
19   \ ale#Escape('pipenv') . ' run prospector'
20   \   .  '  --messages-only --absolute-paths --zero-exit --output-format json %s'
21
22 Execute(Setting executable to 'poetry' appends 'run prospector'):
23   let g:ale_python_prospector_executable = 'path/to/poetry'
24
25   AssertLinter 'path/to/poetry',
26   \ ale#Escape('path/to/poetry') . ' run prospector'
27   \   .  '  --messages-only --absolute-paths --zero-exit --output-format json %s'
28
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')
32
33   AssertLinter 'poetry',
34   \ ale#Escape('poetry') . ' run prospector'
35   \   .  '  --messages-only --absolute-paths --zero-exit --output-format json %s'
36
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')
40
41   AssertLinter 'uv',
42   \ ale#Escape('uv') . ' run prospector'
43   \   .  '  --messages-only --absolute-paths --zero-exit --output-format json %s'