mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-22 03:51:26 +08:00
Improve mypy handling a little bit more
This commit is contained in:
22
test/test_mypy_handler.vader
Normal file
22
test/test_mypy_handler.vader
Normal file
@@ -0,0 +1,22 @@
|
||||
Execute(The mypy handler should parse lines correctly):
|
||||
runtime ale_linters/python/mypy.vim
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'bufnr': 347,
|
||||
\ 'lnum': 4,
|
||||
\ 'vcol': 0,
|
||||
\ 'col': 0,
|
||||
\ 'text': "No library stub file for module 'django.db'",
|
||||
\ 'type': 'E',
|
||||
\ 'nr': -1,
|
||||
\ },
|
||||
\ ],
|
||||
\ 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)',
|
||||
\ ])
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
Reference in New Issue
Block a user