2017-08-25 04:46:56 -07:00
|
|
|
Before:
|
2018-07-15 18:24:53 +01:00
|
|
|
call ale#assert#SetUpLinterTest('python', 'pycodestyle')
|
2017-08-25 04:46:56 -07:00
|
|
|
|
|
|
|
After:
|
2018-07-15 18:24:53 +01:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-15 17:21:17 +00:00
|
|
|
|
2017-08-25 04:46:56 -07:00
|
|
|
Execute(The pycodestyle command callback should return default string):
|
2018-07-15 18:24:53 +01:00
|
|
|
AssertLinter 'pycodestyle', ale#Escape('pycodestyle') . ' -'
|
2017-08-25 04:46:56 -07:00
|
|
|
|
|
|
|
Execute(The pycodestyle command callback should allow options):
|
|
|
|
let g:ale_python_pycodestyle_options = '--exclude=test*.py'
|
2017-10-08 23:26:50 +01:00
|
|
|
|
2018-07-15 18:24:53 +01:00
|
|
|
AssertLinter 'pycodestyle',
|
|
|
|
\ ale#Escape('pycodestyle') . ' --exclude=test*.py -'
|
2017-08-25 04:46:56 -07:00
|
|
|
|
|
|
|
Execute(The pycodestyle executable should be configurable):
|
|
|
|
let g:ale_python_pycodestyle_executable = '~/.local/bin/pycodestyle'
|
2017-10-08 23:26:50 +01:00
|
|
|
|
2018-07-15 18:24:53 +01: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 18:24:53 +01:00
|
|
|
AssertLinter 'path/to/pipenv',
|
|
|
|
\ ale#Escape('path/to/pipenv') . ' run pycodestyle -'
|