2017-04-29 12:33:18 -04:00
|
|
|
Before:
|
2017-01-20 12:30:23 -05:00
|
|
|
runtime ale_linters/python/mypy.vim
|
|
|
|
|
2017-04-29 12:33:18 -04:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The mypy handler should parse lines correctly):
|
2017-01-20 12:30:23 -05:00
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 4,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'text': "No library stub file for module 'django.db'",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
2017-02-04 14:47:37 -05:00
|
|
|
\ {
|
|
|
|
\ 'lnum': 40,
|
|
|
|
\ 'col': 5,
|
|
|
|
\ 'text': "Some other problem",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
2017-01-20 12:30:23 -05: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 14:47:37 -05:00
|
|
|
\ "file.py:40:5: error: Some other problem",
|
2017-01-20 12:30:23 -05:00
|
|
|
\ ])
|
|
|
|
|
2017-04-29 12:33:18 -04:00
|
|
|
Execute(The mypy handler should handle Windows names with spaces):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 4,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'text': "No library stub file for module 'django.db'",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#python#mypy#Handle(347, [
|
|
|
|
\ "C:\something\with spaces.py:4: error: No library stub file for module 'django.db'",
|
|
|
|
\ ])
|