set_validation

Contents

set_validation#

scarlet2.set_validation(state: bool | str = True)[source]#

Set the global validation mode.

Parameters:

state (bool or str, optional) –

Controls automated validation checks. Accepts:

  • "off" (or False): validation checks are skipped.

  • "on" (or True): 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").