You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know about python naming convention, the point is not here : the regex of prompt for project name in uppercase was just for the example.
In reality I use the regex for a variable value in the project which needs to be in uppercase, your code is clear : you apply lower() method on the user input which is not correct.
Description
I use kedro starter CLI configured by prompt.yml with regex check and I think I found one issue : the user inputs are systematically transformed to lowercase : https://github.com/kedro-org/kedro/blob/main/kedro/framework/cli/starters.py#L957
The result is that I can't restrict user input to uppercase or lowercase
Context
I want to restrict user input to uppercase
Steps to Reproduce
project_name
as unique promptproject_name
regex_validator
field to"[A-Z_]+"
kedro new --starter=./my_starter
and answerMY_PROJECT
forproject_name
promptuser_input.lower()
inkedro/framework/cli/starters.py
line 957Expected Result
The regex and the input must match
Actual Result
The user input is refused
Your Environment
Python : 3.9.13
Kedro : 0.19.3
OS : Linux (distribution and kernel version confidential)
The text was updated successfully, but these errors were encountered: