mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
merge with stable
This commit is contained in:
@@ -81,7 +81,7 @@ def check_syntax(fn, lines):
|
||||
@checker('.py')
|
||||
def check_style(fn, lines):
|
||||
for lno, line in enumerate(lines):
|
||||
if len(line) > 95:
|
||||
if len(line.rstrip('\n')) > 95:
|
||||
yield lno+1, "line too long"
|
||||
if line.strip().startswith('#'):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user