2017-08-25 07:46:56 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('python', 'pycodestyle')
|
2017-08-25 07:46:56 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-15 12:21:17 -05:00
|
|
|
|
2017-08-25 07:46:56 -04:00
|
|
|
Execute(The pycodestyle command callback should return default string):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'pycodestyle', ale#Escape('pycodestyle') . ' -'
|
2017-08-25 07:46:56 -04:00
|
|
|
|
|
|
|
Execute(The pycodestyle command callback should allow options):
|
|
|
|
let g:ale_python_pycodestyle_options = '--exclude=test*.py'
|
2017-10-08 18:26:50 -04:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'pycodestyle',
|
|
|
|
\ ale#Escape('pycodestyle') . ' --exclude=test*.py -'
|
2017-08-25 07:46:56 -04:00
|
|
|
|
|
|
|
Execute(The pycodestyle executable should be configurable):
|
|
|
|
let g:ale_python_pycodestyle_executable = '~/.local/bin/pycodestyle'
|
2017-10-08 18:26:50 -04:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter '~/.local/bin/pycodestyle',
|
|
|
|
\ ale#Escape('~/.local/bin/pycodestyle') . ' -'
|
2018-06-04 22:43:02 -04:00
|
|
|
|
|
|
|
Execute(Setting executable to 'pipenv' appends 'run pycodestyle'):
|
|
|
|
let g:ale_python_pycodestyle_executable = 'path/to/pipenv'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'path/to/pipenv',
|
|
|
|
\ ale#Escape('path/to/pipenv') . ' run pycodestyle -'
|