1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-09 08:33:11 +01:00

fix clang-tidy

This commit is contained in:
Tomasz Duda
2024-08-14 17:34:29 +02:00
parent ff97ba9bb3
commit e541bd01cc
2 changed files with 2 additions and 31 deletions

@ -29,7 +29,7 @@ def print_error_for_file(file, body):
print()
def build_all_include(exclude_components):
def build_all_include():
# Build a cpp file that includes all header files in this repo.
# Otherwise header-only integrations would not be tested by clang-tidy
headers = []
@ -37,9 +37,6 @@ def build_all_include(exclude_components):
filetypes = (".h",)
ext = os.path.splitext(path)[1]
if ext in filetypes:
parts = path.split("/components/")
if len(parts) > 1 and parts[1].split("/")[0] in exclude_components:
continue
path = os.path.relpath(path, root_path)
include_p = path.replace(os.path.sep, "/")
headers.append(f'#include "{include_p}"')