MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / skip_file

Function skip_file

scripts/check_header_guards.py:140–153  ·  view source on GitHub ↗
(filepath: str, extensions: List[str], exclude: List[str], include: List[str])

Source from the content-addressed store, hash-verified

138
139
140def skip_file(filepath: str, extensions: List[str], exclude: List[str], include: List[str]) -> bool:
141 extension = filepath.split(".")[-1]
142
143 if extension.lower() not in extensions:
144 return True
145
146 if exclude and any([filepath.startswith(exc) for exc in exclude]):
147 print(exclude)
148 return True
149
150 if include:
151 return not any([filepath.startswith(inc) for inc in include])
152
153 return False
154
155
156if __name__ == "__main__":

Callers 1

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected