Disallow backslashes in author name

This commit is contained in:
Daniel Roy Greenfeld 2018-02-21 18:54:03 -05:00
parent 3cfafcf347
commit f4cadeec97

View File

@ -11,6 +11,9 @@ project_slug = '{{ cookiecutter.project_slug }}'
if hasattr(project_slug, 'isidentifier'):
assert project_slug.isidentifier(), "'{}' project slug is not a valid Python identifier.".format(project_slug)
assert "\\" not in "{{ cookiecutter.author_name }}", "Don't include backslashes in author name."
using_docker = '{{ cookiecutter.use_docker }}'.lower()
if using_docker == 'n':
TERMINATOR = "\x1b[0m"