Skip to content

Commit fbc24b1

Browse files
committed
Run src layout migration on all plugins
1 parent 5b8e3a9 commit fbc24b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cookiecutter/apply_templates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from cookiecutter.main import cookiecutter
2121

22+
import migrate_src_layout
2223

2324
@click.option("--bootstrap/--no-bootstrap")
2425
@click.option("--force/--no-force")
@@ -36,6 +37,9 @@ def main(bootstrap: bool, force: bool) -> None:
3637
)
3738
print(f"New plugin repository created in {proj_dir}.")
3839
os.chdir(proj_dir)
40+
else:
41+
# Remove this again, once all known plugins were migrated.
42+
migrate_src_layout.main()
3943

4044
try:
4145
pyproject_toml = tomllib.loads(Path("pyproject.toml").read_text())

0 commit comments

Comments
 (0)