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', 'pycodestyle')
5 call ale#assert#TearDownLinterTest()
7 Execute(The pycodestyle command callback should return default string):
8 AssertLinter 'pycodestyle', ale#Escape('pycodestyle') . ' -'
10 Execute(The pycodestyle command callback should allow options):
11 let g:ale_python_pycodestyle_options = '--exclude=test*.py'
13 AssertLinter 'pycodestyle',
14 \ ale#Escape('pycodestyle') . ' --exclude=test*.py -'
16 Execute(The pycodestyle executable should be configurable):
17 let g:ale_python_pycodestyle_executable = '~/.local/bin/pycodestyle'
19 AssertLinter '~/.local/bin/pycodestyle',
20 \ ale#Escape('~/.local/bin/pycodestyle') . ' -'
22 Execute(Setting executable to 'pipenv' appends 'run pycodestyle'):
23 let g:ale_python_pycodestyle_executable = 'path/to/pipenv'
25 AssertLinter 'path/to/pipenv',
26 \ ale#Escape('path/to/pipenv') . ' run pycodestyle -'
28 Execute(Pipenv is detected when python_pycodestyle_auto_pipenv is set):
29 let g:ale_python_pycodestyle_auto_pipenv = 1
30 call ale#test#SetFilename('../test-files/python/pipenv/whatever.py')
32 AssertLinter 'pipenv',
33 \ ale#Escape('pipenv') . ' run pycodestyle -'
35 Execute(Setting executable to 'poetry' appends 'run pycodestyle'):
36 let g:ale_python_pycodestyle_executable = 'path/to/poetry'
38 AssertLinter 'path/to/poetry',
39 \ ale#Escape('path/to/poetry') . ' run pycodestyle -'
41 Execute(Poetry is detected when python_pycodestyle_auto_poetry is set):
42 let g:ale_python_pycodestyle_auto_poetry = 1
43 call ale#test#SetFilename('../test-files/python/poetry/whatever.py')
45 AssertLinter 'poetry',
46 \ ale#Escape('poetry') . ' run pycodestyle -'
48 Execute(uv is detected when python_pycodestyle_auto_uv is set):
49 let g:ale_python_pycodestyle_auto_uv = 1
50 call ale#test#SetFilename('../test-files/python/uv/whatever.py')
53 \ ale#Escape('uv') . ' run pycodestyle -'