Miscellaneous improvements to code style script

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2022-12-08 13:12:21 +00:00
parent 92b5ac1a47
commit b7dab41315

View file

@ -32,9 +32,9 @@ def get_src_files() -> List[str]:
"""
Use git ls-files to get a list of the source files
"""
git_ls_files_cmd = ["git", "ls-files", \
"*.[hc]", \
"tests/suites/*.function", \
git_ls_files_cmd = ["git", "ls-files",
"*.[hc]",
"tests/suites/*.function",
"scripts/data_files/*.fmt"]
result = subprocess.run(git_ls_files_cmd, stdout=subprocess.PIPE, \
@ -56,8 +56,7 @@ def get_uncrustify_version() -> str:
"""
Get the version string from Uncrustify
"""
version_args = ["--version"]
result = subprocess.run([UNCRUSTIFY_EXE] + version_args, \
result = subprocess.run([UNCRUSTIFY_EXE, "--version"], \
stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False)
if result.returncode != 0:
print("Error getting version: "+str(result.stderr, "utf-8"), \