diff --git a/travis.py b/travis.py index 9d7f048ef..666d53232 100644 --- a/travis.py +++ b/travis.py @@ -45,12 +45,6 @@ for f in sorted(Path('.').glob('**/*.rst')): lines = content.splitlines(keepends=False) - # Check whitespace at end of line - for i, line in enumerate(lines): - if line.rstrip() != line: - errors.append("Lines must not contain spaces at the end of the line. Please " - "remove spaces at the end of {}:{}".format(f, i+1)) - for i, line in enumerate(lines): if i == 0: continue @@ -103,14 +97,6 @@ for f in sorted(Path('.').glob('**/*.rst')): "{}:{}".format(directive_name, num_indent, f, j+1)) break - # Check line length - for i, line in enumerate(lines): - max_line_length = 160 - if len(line) > max_line_length: - errors.append("Lines must not be longer than {} characters. Line {}:{} is {} " - "characters long. Please insert newlines." - "".format(max_line_length, f, i+1, len(line))) - for i, line in enumerate(lines): if esphome_io_regex.search(line): if 'privacy.rst' in str(f) or 'web_server.rst' in str(f):