cookiecutter_python.hooks package¶
Submodules¶
cookiecutter_python.hooks.pre_gen_project module¶
cookiecutter_python.hooks.post_gen_project module¶
Cookiecutter post generation hook script that handles operations after the template project is used to generate a target project.
- cookiecutter_python.hooks.post_gen_project.git_add(project_dir: str)[source]¶
Do a Git add operation on the generated project.
- cookiecutter_python.hooks.post_gen_project.git_commit(request)[source]¶
Commit the staged changes in the generated project.
- cookiecutter_python.hooks.post_gen_project.initialize_git_repo(project_dir: str)[source]¶
Initialize the Git repository in the generated project.
- cookiecutter_python.hooks.post_gen_project.is_git_repo_clean(project_directory: str)[source]¶
Check to confirm if the Git repository is clean and has no uncommitted changes. If its clean return True otherwise False.