File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 21
21
"""
22
22
23
23
EXCEPTION_MSG_PYTHONVERSION = """
24
- ERROR: The python version must be >= {PYTHONVERSION_MIN }, got {pythonversion }.
24
+ ERROR: The python version must be >= {min_python_version }, got {python_version }.
25
25
"""
26
26
27
27
@@ -30,18 +30,22 @@ def main() -> None:
30
30
module_name = "{{ cookiecutter.project_slug}}"
31
31
32
32
if not re .match (MODULE_REGEX , module_name ):
33
- raise ValueError (EXCEPTION_MSG_MODULE_NAME .format (module_name ))
33
+ raise ValueError (EXCEPTION_MSG_MODULE_NAME .format (module_name = module_name ))
34
34
35
35
environment_name = "{{ cookiecutter.conda_environment_name }}"
36
36
37
37
if not re .match (ENVIRON_REGEX , environment_name ):
38
- raise ValueError (EXCEPTION_MSG_ENVIRON_NAME .format (environment_name ))
38
+ raise ValueError (
39
+ EXCEPTION_MSG_ENVIRON_NAME .format (environment_name = environment_name )
40
+ )
39
41
40
42
python_version = "{{ cookiecutter.python_version }}"
41
43
42
44
if not re .match (PYTHONVERSION_REGEX , python_version ):
43
45
raise ValueError (
44
- EXCEPTION_MSG_PYTHONVERSION .format (PYTHONVERSION_MIN , python_version )
46
+ EXCEPTION_MSG_PYTHONVERSION .format (
47
+ min_python_version = PYTHONVERSION_MIN , python_version = python_version
48
+ )
45
49
)
46
50
47
51
You can’t perform that action at this time.
0 commit comments