mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 05:24:14 +00:00
Exclude tests/benchmarks/ from clang-tidy file discovery
This commit is contained in:
@@ -231,6 +231,9 @@ def main():
|
||||
|
||||
cwd = os.getcwd()
|
||||
files = [os.path.relpath(path, cwd) for path in git_ls_files(["*.cpp"])]
|
||||
# Exclude benchmark files — they require google benchmark headers not
|
||||
# available in the ESP32 toolchain and use different naming conventions.
|
||||
files = [f for f in files if not f.startswith("tests/benchmarks/")]
|
||||
|
||||
# Print initial file count if it's large
|
||||
if len(files) > 50:
|
||||
|
||||
Reference in New Issue
Block a user