set_validation#
- scarlet2.set_validation(state: bool | str = True)[source]#
Set the global validation mode.
- Parameters:
state (
boolorstr, optional) –Controls automated validation checks. Accepts:
"off"(orFalse): validation checks are skipped."on"(orTrue): validation checks run and only the check result is printed."verbose": validation checks run and both the result and its context are printed.
Defaults to
True(equivalent to"on").