#476 Make F401 a warning and E112 a syntax error

This commit is contained in:
w0rp
2018-02-18 09:44:04 +00:00
parent fcb7932d7d
commit 5972b97223
4 changed files with 55 additions and 5 deletions

View File

@@ -44,8 +44,8 @@ function! ale_linters#python#pycodestyle#Handle(buffer, lines) abort
\ 'code': l:match[4],
\}
" E999 is not a style error, it's a syntax error.
if l:match[4] is# 'E999'
" E999 and E112 are syntax errors.
if l:match[4] is# 'E999' || l:match[4] is# 'E112'
unlet l:item.sub_type
endif