aboutsummaryrefslogtreecommitdiff
path: root/hooks/pre_gen_project.py
blob: f195d6ac7602587482823a2ff6da53b3b116d89d (plain)
1
2
3
4
5
6
7
8
"""Validate the project was created correctly."""
import sys

project_name = '{{ cookiecutter.project_name }}'

if '-' in project_name:
    print('ERROR: Project shortname cannot contain dashes, please use underscores')
    sys.exit(1)