2017-01-20 17:30:23 +00:00
|
|
|
Execute(The mypy handler should parse lines correctly):
|
|
|
|
runtime ale_linters/python/mypy.vim
|
|
|
|
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'bufnr': 347,
|
|
|
|
\ 'lnum': 4,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'text': "No library stub file for module 'django.db'",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
2017-02-04 19:47:37 +00:00
|
|
|
\ {
|
|
|
|
\ 'bufnr': 347,
|
|
|
|
\ 'lnum': 40,
|
|
|
|
\ 'col': 5,
|
|
|
|
\ 'text': "Some other problem",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
2017-01-20 17:30:23 +00:00
|
|
|
\ ],
|
|
|
|
\ ale_linters#python#mypy#Handle(347, [
|
|
|
|
\ "file.py:4: error: No library stub file for module 'django.db'",
|
|
|
|
\ 'file.py:4: note: (Stub files are from https://github.com/python/typeshed)',
|
2017-02-04 19:47:37 +00:00
|
|
|
\ "file.py:40:5: error: Some other problem",
|
2017-01-20 17:30:23 +00:00
|
|
|
\ ])
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|