Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Commit 94d95f4

Browse files
committed
Properly ignore PEP8 errors
1 parent 483c262 commit 94d95f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

checker.py

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def __init__(self, *args, **kwargs):
2626
super(Pep8Report, self).__init__(*args, **kwargs)
2727

2828
def error(self, line_number, offset, text, check):
29+
code = text[:4]
30+
if self._ignore_code(code):
31+
return
2932
level = 'error' if text.startswith('E') else 'warn'
3033
self.problems.append(Problem(level, line_number, offset, text))
3134

0 commit comments

Comments
 (0)