Implement a reusable Click parameter validator using click 's public API. Specifically, create a custom…
Implement a reusable Click parameter validator using click 's public API. Specifically, create a custom…: a task in repo2rlenv-code-instruct (Harbor dataset). When the value is not a valid float, raise click.BadParameter with the message "not a valid float" . When the value is out of range, raise…
The task
When the value is not a valid float, raise `click.BadParameter` with the message `"not a valid float"`. When the value is out of range, raise `click.BadParameter` with the message `"<value> is not in range [<min_val>, <max_val>]"` (values formatted to 2 decimal places).
Part of FineEnvs/repo2rlenv-code-instruct.