mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Speed up clang-tidy CI by 80%+ with incremental checking (#9396)
This commit is contained in:
@@ -270,7 +270,7 @@ def lint_newline(fname):
|
||||
return "File contains Windows newline. Please set your editor to Unix newline mode."
|
||||
|
||||
|
||||
@lint_content_check(exclude=["*.svg"])
|
||||
@lint_content_check(exclude=["*.svg", ".clang-tidy.hash"])
|
||||
def lint_end_newline(fname, content):
|
||||
if content and not content.endswith("\n"):
|
||||
return "File does not end with a newline, please add an empty line at the end of the file."
|
||||
|
Reference in New Issue
Block a user