accept 95 chars including CRLF. It is same as flake8 check.

This commit is contained in:
shimizukawa
2016-01-12 23:47:25 +09:00
parent c6b9d3a494
commit 8bd5b22561

View File

@@ -57,7 +57,7 @@ if sys.version_info < (3, 0):
def check_style_and_encoding(fn, lines):
encoding = 'ascii'
for lno, line in enumerate(lines):
if len(line) > 95:
if len(line.rstrip('\n')) > 95:
yield lno+1, "line too long"
if lno < 2:
co = coding_re.search(line)