mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
Fix #516 - Add support for pyflakes for Python
This commit is contained in:
24
test/handler/test_pyflakes_handler.vader
Normal file
24
test/handler/test_pyflakes_handler.vader
Normal file
@@ -0,0 +1,24 @@
|
||||
Before:
|
||||
runtime ale_linters/python/pyflakes.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The pyflakes handler should handle basic errors):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 0,
|
||||
\ 'text': 'undefined name ''foo''',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 7,
|
||||
\ 'text': 'invalid syntax',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#python#pyflakes#Handle(bufnr(''), [
|
||||
\ 'test.py:1: undefined name ''foo''',
|
||||
\ 'test.py:1:7: invalid syntax',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user