From 8b0171a17380e439077b1b737d4f9b29e3bacc85 Mon Sep 17 00:00:00 2001 From: Murat Kaan Meral Date: Tue, 17 Mar 2026 15:30:49 -0400 Subject: [PATCH] feat: cleanup md and txt files on setup --- setup_template.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/setup_template.py b/setup_template.py index 97efb1c..65e8b9e 100644 --- a/setup_template.py +++ b/setup_template.py @@ -284,6 +284,20 @@ def main() -> None: # Clean up print("\n🧹 Cleaning up...") + # Remove template-specific files that don't belong to the user's project + cleanup_targets = [ + "CODE_OF_CONDUCT.md", # template repo's own conduct file + "CONTRIBUTING.md", # template repo's own contributing guide + "NOTICE", # Amazon's copyright notice for the template + ] + for target in cleanup_targets: + if os.path.exists(target): + if os.path.isdir(target): + shutil.rmtree(target) + else: + os.remove(target) + print(f" ✓ Removed {target}") + # Remove this setup script script_path = os.path.abspath(__file__) if os.path.exists(script_path):