diff --git a/.github/scripts/restructure_to_namespace.py b/.github/scripts/restructure_to_namespace.py index 5c277665..2fba986d 100755 --- a/.github/scripts/restructure_to_namespace.py +++ b/.github/scripts/restructure_to_namespace.py @@ -29,10 +29,6 @@ def update_imports_in_file(self, file_path: Path) -> bool: with open(file_path, "r", encoding="utf-8") as f: content = f.read() - # Skip if already contains api_client - if "api_client" in content: - return False - original_content = content # Apply the actual import transformations @@ -243,13 +239,6 @@ def run(self): shutil.rmtree(api_client_dir) print(f"Removed {api_client_dir}") - elif api_client_dir.exists() and any(api_client_dir.iterdir()): - print("✅ Already restructured - api_client/ exists and contains files") - print( - "If you want to force re-restructuring, delete src/glean/api_client/ first" - ) - return - print("Starting restructure...") print(f"Project root: {self.project_root}") print(f"Source dir: {self.src_dir}")