diff --git a/scripts/check_files.py b/scripts/check_files.py index d3a61c1d6..3db3dcb2f 100755 --- a/scripts/check_files.py +++ b/scripts/check_files.py @@ -310,7 +310,7 @@ class TrailingWhitespaceIssueTracker(LineIssueTracker): """Track lines with trailing whitespace.""" heading = "Trailing whitespace:" - suffix_exemptions = frozenset([".dsp", ".md"]) + suffix_exemptions = frozenset([".diff", ".dsp", ".md", ".patch"]) def issue_with_line(self, line, _filepath, _line_number): return line.rstrip(b"\r\n") != line.rstrip()