class CheckRegistry:
Undocumented
Method | __init__ |
Undocumented |
Method | get_checks |
Undocumented |
Method | register |
Can be used as a function or a decorator. Register given function f labeled with given tags . The function should receive **kwargs and return list of Errors and Warnings. |
Method | run_checks |
Run all registered checks and return list of Errors and Warnings. |
Method | tag_exists |
Undocumented |
Method | tags_available |
Undocumented |
Instance Variable | deployment_checks |
Undocumented |
Instance Variable | registered_checks |
Undocumented |
Can be used as a function or a decorator. Register given function
f
labeled with given tags
. The function should receive **kwargs
and return list of Errors and Warnings.
Example:
registry = CheckRegistry() @registry.register('mytag', 'anothertag') def my_check(app_configs, **kwargs): # ... perform checks and collect `errors` ... return errors # or registry.register(my_check, 'mytag', 'anothertag')