forked from python-mode/python-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlint.vim
More file actions
30 lines (23 loc) · 798 Bytes
/
lint.vim
File metadata and controls
30 lines (23 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
filetype plugin indent on
set hidden
describe 'pymode check code'
before
e t/test.py
end
after
close
end
it 'async'
let g:pymode_lint_async = 1
PyLint
Expect getqflist() == []
sleep 1
call pymode#queue#Poll()
Expect getqflist() == [{'lnum': 2, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': 0, 'type': 'E', 'pattern': '', 'text': 'W0612 local variable "test" is assigned to but never used [pyflakes]'}]
end
it 'disable async'
let g:pymode_lint_async = 0
PyLint
Expect getqflist() == [{'lnum': 2, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': 0, 'type': 'E', 'pattern': '', 'text': 'W0612 local variable "test" is assigned to but never used [pyflakes]'}]
end
end