Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 25ee29e

Browse files
authored
Add some comments (#34)
2 parents b01850b + 6615289 commit 25ee29e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/PythonProjectBootstrapper/ProjectGenerationUtils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
import shutil # pylint: disable=unused-import, wrong-import-order
2828
import textwrap # pylint: disable=unused-import, wrong-import-order
2929

30-
# TODO: find a way to verify this is the filename the post-gen-hook writes to
30+
# This filename should be the same as the filename defined in package/hooks/post_gen_project.py
31+
# Ideally we would be able to assert that these two variables have the same filename, but we encounter errors when importing
32+
# the variable due to how cookiecutter changes the working directory for the post-gen hook
3133
prompt_filename: str = "prompt_text.yml"
3234

3335

src/PythonProjectBootstrapper/package/hooks/post_gen_project.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
from dbrownell_Common import PathEx
1515

16+
# This filename should be the same as the filename defined in ../../ProjectGenerationUtils.py
17+
# Ideally we would be able to assert that these two variables have the same filename, but we encounter errors when importing
18+
# the variable due to how cookiecutter changes the working directory for the post-gen hook
1619
prompt_filename = "prompt_text.yml"
1720

1821

0 commit comments

Comments
 (0)