utils: Adjust formatting of check-style-clang-format.py

This commit is contained in:
Eduardo Almeida
2022-10-19 18:47:13 +01:00
parent 223dbf0277
commit b07e1d7019

View File

@@ -128,8 +128,8 @@ def skip_directory(dirpath: str) -> bool:
_, directory = os.path.split(dirpath)
return directory in DIRECTORIES_TO_SKIP or \
(directory.startswith('.') and directory != '.')
return (directory in DIRECTORIES_TO_SKIP or
(directory.startswith('.') and directory != '.'))
def skip_file_formatting(filename: str) -> bool:
@@ -155,8 +155,8 @@ def skip_file_whitespace(filename: str) -> bool:
basename, extension = os.path.splitext(os.path.split(filename)[1])
return basename not in FILES_TO_CHECK_WHITESPACE and \
extension not in FILE_EXTENSIONS_TO_CHECK_WHITESPACE
return (basename not in FILES_TO_CHECK_WHITESPACE and
extension not in FILE_EXTENSIONS_TO_CHECK_WHITESPACE)
def skip_file_tabs(filename: str) -> bool: