Skip to content

Alert user if choice is invalid#1496

Merged
ssbarnea merged 7 commits intocookiecutter:masterfrom
dHannasch:error-if-invalid-choice
Apr 27, 2021
Merged

Alert user if choice is invalid#1496
ssbarnea merged 7 commits intocookiecutter:masterfrom
dHannasch:error-if-invalid-choice

Conversation

@dHannasch
Copy link
Copy Markdown
Contributor

@dHannasch dHannasch commented Feb 2, 2021

If an invalid value is provided for a choice variable (such as from a config file), this alerts the user instead of silently ignoring it.

@ssbarnea ssbarnea added the enhancement This issue/PR relates to a feature request. label Apr 27, 2021
@ssbarnea ssbarnea merged commit b0c5e3f into cookiecutter:master Apr 27, 2021
@simobasso simobasso mentioned this pull request May 15, 2021
cagonza6 pushed a commit to cagonza6/cookiecutter that referenced this pull request Jun 16, 2021
* If an invalid value is provided for a choice variable (such as from a config file), alert the user instead of silently ignoring it.

* black

* Issue a warning instead of a ValueError.

* assert generated_context == expected_context

* test_apply_overwrites_invalid_overwrite

* flake8

* Verify variables overwrite for list if variable not in list not ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This issue/PR relates to a feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants