Fix #516 - Add support for pyflakes for Python

This commit is contained in:
w0rp
2017-11-17 18:11:22 +00:00
parent 0e96d4576a
commit 49ccfb1a00
5 changed files with 111 additions and 0 deletions

View 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',
\ ])