cookiecutter_python.hooks package

Submodules

cookiecutter_python.hooks.pre_gen_project module

cookiecutter_python.hooks.pre_gen_project.get_request()[source]
cookiecutter_python.hooks.pre_gen_project.hook_main(request)[source]
cookiecutter_python.hooks.pre_gen_project.input_sanitization(request)[source]
cookiecutter_python.hooks.pre_gen_project.main()[source]

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.get_request()[source]
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.grant_basic_permissions(project_dir: str)[source]
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.

cookiecutter_python.hooks.post_gen_project.main()[source]
cookiecutter_python.hooks.post_gen_project.post_hook()[source]
cookiecutter_python.hooks.post_gen_project.python36_n_below_run_params(project_directory: str)[source]
cookiecutter_python.hooks.post_gen_project.python37_n_above_run_params(project_directory: str)[source]

Module contents