From 40dbbd6d86f61b4290243dbe1d2a1b1e55cfefbe Mon Sep 17 00:00:00 2001 From: Matthias Krack Date: Mon, 6 Mar 2023 17:54:01 +0100 Subject: [PATCH] Allow tab characters also in arch files --- tools/precommit/check_file_properties.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/precommit/check_file_properties.py b/tools/precommit/check_file_properties.py index 0b91459af3..7d71f403ef 100755 --- a/tools/precommit/check_file_properties.py +++ b/tools/precommit/check_file_properties.py @@ -152,7 +152,12 @@ def check_file(path: pathlib.Path) -> typing.List[str]: if "\r\n" in content: warnings += [f"{path}: contains DOS linebreaks"] - if fn_ext not in (".pot", ".patch") and basefn != "Makefile" and "\t" in content: + if ( + fn_ext not in (".pot", ".patch") + and basefn != "Makefile" + and basefn != "generate_arch_files.sh" + and "\t" in content + ): warnings += [f"{path}: contains tab character"] if fn_ext == ".cu" and "#if defined(_OMP_H)\n#error" not in content: