From 2fd621ebe92ce222933fc3294c97234e468d62b1 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 2 Jul 2024 08:58:21 +0200 Subject: [PATCH] Adapt code_style.py Signed-off-by: Ronald Cron --- scripts/code_style.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/code_style.py b/scripts/code_style.py index d3f89d913..26de73070 100755 --- a/scripts/code_style.py +++ b/scripts/code_style.py @@ -66,7 +66,7 @@ def get_src_files(since: Optional[str]) -> List[str]: that have changed since that commit. Without this argument, list all files known to git. - Only C files are included, and certain files (generated, or 3rdparty) + Only C files are included, and certain files (generated, or third party) are excluded. """ file_patterns = ["*.[hc]", @@ -130,7 +130,8 @@ def get_src_files(since: Optional[str]) -> List[str]: # companion files in the same subtree), or for automatically # generated files (we're correcting the templates instead). src_files = [filename for filename in src_files - if not (filename.startswith("3rdparty/") or + if not (filename.startswith("tf-psa-crypto/drivers/everest/") or + filename.startswith("tf-psa-crypto/drivers/p256-m/") or filename in generated_files or is_file_autogenerated(filename))] return src_files