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', 'pydocstyle')
3 call ale#test#SetFilename('example/test.py')
6 call ale#assert#TearDownLinterTest()
8 Execute(The pydocstyle command callback should return default string):
10 AssertLinter 'pydocstyle', ale#Escape('pydocstyle') . ' %s'
12 Execute(The pydocstyle command callback should allow options):
13 let g:ale_python_pydocstyle_options = '--verbose'
15 AssertLinter 'pydocstyle', ale#Escape('pydocstyle') . ' --verbose %s'
17 Execute(The pydocstyle executable should be configurable):
18 let g:ale_python_pydocstyle_executable = '~/.local/bin/pydocstyle'
20 AssertLinter '~/.local/bin/pydocstyle',
21 \ ale#Escape('~/.local/bin/pydocstyle') . ' %s'
23 Execute(Setting executable to 'pipenv' appends 'run pydocstyle'):
24 let g:ale_python_pydocstyle_executable = 'path/to/pipenv'
26 AssertLinter 'path/to/pipenv',
27 \ ale#Escape('path/to/pipenv') . ' run pydocstyle %s'
29 Execute(Pipenv is detected when python_pydocstyle_auto_pipenv is set):
30 let g:ale_python_pydocstyle_auto_pipenv = 1
31 call ale#test#SetFilename('../test-files/python/pipenv/whatever.py')
33 AssertLinter 'pipenv', ale#Escape('pipenv') . ' run pydocstyle %s'
35 Execute(Setting executable to 'poetry' appends 'run pydocstyle'):
36 let g:ale_python_pydocstyle_executable = 'path/to/poetry'
38 AssertLinter 'path/to/poetry',
39 \ ale#Escape('path/to/poetry') . ' run pydocstyle %s'
41 Execute(Poetry is detected when python_pydocstyle_auto_poetry is set):
42 let g:ale_python_pydocstyle_auto_poetry = 1
43 call ale#test#SetFilename('../test-files/python/poetry/whatever.py')
45 AssertLinter 'poetry', ale#Escape('poetry') . ' run pydocstyle %s'
47 Execute(uv is detected when python_pydocstyle_auto_uv is set):
48 let g:ale_python_pydocstyle_auto_uv = 1
49 call ale#test#SetFilename('../test-files/python/uv/whatever.py')
51 AssertLinter 'uv', ale#Escape('uv') . ' run pydocstyle %s'