Generate a minimal __init__.py.
(self, module_path: str)
| 1072 | return [] |
| 1073 | |
| 1074 | def _generate_init(self, module_path: str) -> str: |
| 1075 | """Generate a minimal __init__.py.""" |
| 1076 | pkg = module_path.replace("/__init__.py", "").replace("/", ".") or self.package_name |
| 1077 | return f"# {pkg}\n" |
| 1078 | |
| 1079 | def generate_root_init(self, all_modules: List[str]) -> str: |
| 1080 | sub_modules = sorted( |