From 16733f647d1dd55b0537b26f5321df88561582e4 Mon Sep 17 00:00:00 2001 From: harrki Date: Thu, 28 Nov 2024 16:00:59 +0900 Subject: [PATCH 1/2] fix: Fixed to copy only necessary files --- adf_core_python/cli/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adf_core_python/cli/cli.py b/adf_core_python/cli/cli.py index 232bd1b..e86c980 100644 --- a/adf_core_python/cli/cli.py +++ b/adf_core_python/cli/cli.py @@ -38,6 +38,8 @@ def _copy_template( for file in files: file_path = os.path.join(root, file) with open(file_path, "r") as f: + if not file_path.endswith((".py", ".yaml")): + continue content = f.read() with open(file_path, "w") as f: f.write(content.replace(NAME_PLACEHOLDER, name)) From 92d4da8c2e32fdd355fb72d1fece05960dfc610c Mon Sep 17 00:00:00 2001 From: harrki Date: Thu, 28 Nov 2024 16:04:33 +0900 Subject: [PATCH 2/2] fix: Add necessary file --- adf_core_python/cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adf_core_python/cli/cli.py b/adf_core_python/cli/cli.py index e86c980..b14a1c7 100644 --- a/adf_core_python/cli/cli.py +++ b/adf_core_python/cli/cli.py @@ -38,7 +38,7 @@ def _copy_template( for file in files: file_path = os.path.join(root, file) with open(file_path, "r") as f: - if not file_path.endswith((".py", ".yaml")): + if not file_path.endswith((".py", ".yaml", ".json")): continue content = f.read() with open(file_path, "w") as f: