checkrunner

FontBakery CheckRunner is the driver of an fontbakery suite of checks.

Separation of Concerns Disclaimer: While created specifically for checking fonts and font-families this module has no domain knowledge about fonts. It can be used for any kind of (document) checking. Please keep it so. It will be valuable for other domains as well. Domain specific knowledge should be encoded only in the Profile (Checks, Conditions) and MAYBE in customized reporters e.g. subclasses.

class fontbakery.checkrunner.CheckRunner(profile, values, config, values_can_override_profile_names=True, use_cache=True)[source][source]
check_order(order)[source][source]

order must be a subset of self.order

clearCache()[source][source]
get(key, iterargs, *args)[source][source]
get_iterarg(name, index)[source][source]

Used by e.g. reporters

property iterargs[source]

uses the singular name as key

property order: Tuple[Tuple[Any, Any, Any], ...][source]
property profile[source]
run(order=None)[source][source]
run_externally_controlled(receive_result_fn, next_check_gen, order=None)[source][source]
session_protocol_generator(order=None)[source][source]
fontbakery.checkrunner.distribute_generator(gen, targets_callbacks)[source][source]
fontbakery.checkrunner.drive_session_protocol(session_gen, next_check_gen)[source][source]
fontbakery.checkrunner.get_module_from_file(filename)[source][source]
fontbakery.checkrunner.get_profile_from_module_locator(module_locator)[source][source]
fontbakery.checkrunner.session_protocol_generator(check_protocol_generator, order)[source][source]