# -*- coding: utf-8 -*-

import re
import sys

MODULE_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$'

project_slug = '{{ cookiecutter.project_slug }}'

if not re.match(MODULE_REGEX, project_slug):
    print('ERROR: %s is not a valid Python project slug!' % project_slug)

    # exits with status 1 to indicate failure
    sys.exit(1)
