def main():
    """Check if we can run the  cookiecutter."""
    if os.environ.get("COOKIECUTTER_FAIL_PRE_PROMPT", False):
        sys.exit(1)
    cwd = Path('.').resolve()
    bkp = backup_configuration(cwd)
    print(f"All good here, created {bkp}")
Check if we can run the  cookiecutter.
tests/test-pyhooks/hooks/pre_prompt.py