Skip to content

check_unused_sources

This check identifies sources that are not being used directly by any models. This indicates the source can be removed or disabled.

Version History

Added in Debby v0.2.0

Parameters

This check does not support any custom parameters.

Info

For more information about how to set custom parameters for a check, see the documentation on configuration.

Source

def check(source: dict, children: list[dict]):
    child_models = [m for m in children if m["resource_type"] == "model"]
    assert len(child_models) != 0