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:
script
@ -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}"')
|
||||
|
Reference in New Issue
Block a user