mirror of
https://github.com/dense-analysis/ale
synced 2024-12-24 23:22:29 +00:00
29 lines
704 B
Plaintext
29 lines
704 B
Plaintext
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',
|
|
\ },
|
|
\ {
|
|
\ 'bufnr': 347,
|
|
\ 'lnum': 40,
|
|
\ 'col': 5,
|
|
\ 'text': "Some other problem",
|
|
\ 'type': 'E',
|
|
\ },
|
|
\ ],
|
|
\ 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)',
|
|
\ "file.py:40:5: error: Some other problem",
|
|
\ ])
|
|
|
|
After:
|
|
call ale#linter#Reset()
|