~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/compiler/pytest.vim -rw-r--r-- 463 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
" Vim compiler file
" Compiler: Py.test <http://pytest.org/>
" Maintainer: Whyme Lyu <5longluna at gmail.com>
" URL: https://github.com/5long/pytest-vim-compiler

if exists('current_compiler')
  finish
endif
let current_compiler = 'pytest'

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=py.test\ --tb=short\ -q

CompilerSet errorformat=
  \%*[_]\ %m\ %*[_],
  \%A%>%f:%l:\ %.%#,
  \%-Z>%*[\ ]%m,
  \E%m,
  \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save