Skip to content

Commit

Permalink
Revert "Allowing whitespace-only lines."
Browse files Browse the repository at this point in the history
This makes lint.py's behavior match pre-commit, which is useful because lint.py
errors show up inline on GitHub PRs.

This reverts commit ebb3dc4
  • Loading branch information
lethosor committed Nov 15, 2022
1 parent 966623a commit d786989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class TrailingWhitespaceLinter(Linter):
msg = 'Contains trailing whitespace'
def check_line(self, line):
line = line.replace('\r', '').replace('\n', '')
return not line.strip() or line == line.rstrip('\t ')
return line == line.rstrip('\t ')
def fix_line(self, line):
return line.rstrip('\t ')

Expand Down

0 comments on commit d786989

Please sign in to comment.