pre_gen_project#

This module contains hooks which are executed before the template is rendered.

Module Contents#

Functions#

main(→ None)

Apply pre-generation hooks.

Attributes#

pre_gen_project.MODULE_REGEX = ^[_a-zA-Z][_a-zA-Z0-9]*$[source]#
pre_gen_project.ENVIRON_REGEX = ^[-_a-zA-Z0-9]*$[source]#
pre_gen_project.PYTHONVERSION_REGEX = ^(3\.(1[0-9]|[7-9])(\.[0-9]{1,2})?)$[source]#
pre_gen_project.PYTHONVERSION_MIN = 3.7[source]#
pre_gen_project.EXCEPTION_MSG_MODULE_NAME = Multiline-String[source]#
Show Value
1ERROR: The project slug ({module_name}) is not a valid Python module name.
2
3Please do not use anything other than letters, numbers, and underscores '_'.
4The first character must not be a number.
pre_gen_project.EXCEPTION_MSG_ENVIRON_NAME = Multiline-String[source]#
Show Value
1ERROR: The project slug ({environment_name}) is not a valid conda environment name.
2
3Please do not use anything other than letters, numbers, underscores '_',
4and minus signs '-'.
pre_gen_project.EXCEPTION_MSG_PYTHONVERSION = Multiline-String[source]#
Show Value
1ERROR: The python version must be >= {min_python_version}, got {python_version}.
pre_gen_project._ = Multiline-String[source]#
Show Value
1{{ cookiecutter.update(
2    {
3        "__package_name":
4        cookiecutter.package_name|lower|replace(' ', '_')|replace('-', '_'),
5    }
6)}}
pre_gen_project.main() None[source]#

Apply pre-generation hooks.