MCPcopy Index your code
hub / github.com/huggingface/diffusers / check_documentation

Function check_documentation

utils/check_support_list.py:54–64  ·  view source on GitHub ↗

Generic function to check if all classes defined in `src_path` are documented in `doc_path`. Returns a set of undocumented class names.

(doc_path, src_path, doc_regex, src_regex, exclude_conditions=None)

Source from the content-addressed store, hash-verified

52
53
54def check_documentation(doc_path, src_path, doc_regex, src_regex, exclude_conditions=None):
55 """
56 Generic function to check if all classes defined in `src_path` are documented in `doc_path`.
57 Returns a set of undocumented class names.
58 """
59 documented = set(read_documented_classes(doc_path, doc_regex))
60 source_classes = set(read_source_classes(src_path, src_regex, exclude_conditions=exclude_conditions))
61
62 # Find which classes in source are not documented in a deterministic way.
63 undocumented = sorted(source_classes - documented)
64 return undocumented
65
66
67if __name__ == "__main__":

Calls 2

read_documented_classesFunction · 0.85
read_source_classesFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…