[clang-tidy] Hash idf_component.yml and trigger hash hook on more inputs (#16753)

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
Jonathan Swoboda
2026-06-03 23:48:34 -04:00
committed by GitHub
parent 53d685f242
commit ffaa31febc
3 changed files with 8 additions and 2 deletions

View File

@@ -105,6 +105,12 @@ def calculate_clang_tidy_hash(repo_root: Path | None = None) -> str:
sdkconfig_content = read_file_bytes(sdkconfig_path)
hasher.update(sdkconfig_content)
# Hash esphome/idf_component.yml: its managed deps drive the ESP-IDF
# build's include set, which clang-tidy analyzes.
idf_component_path = repo_root / "esphome" / "idf_component.yml"
if idf_component_path.exists():
hasher.update(read_file_bytes(idf_component_path))
return hasher.hexdigest()