MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / check_all_objects_are_documented

Function check_all_objects_are_documented

diffusers/utils/check_repo.py:653–665  ·  view source on GitHub ↗

Check all models are properly documented.

()

Source from the content-addressed store, hash-verified

651
652
653def check_all_objects_are_documented():
654 """Check all models are properly documented."""
655 documented_objs = find_all_documented_objects()
656 modules = diffusers._modules
657 objects = [c for c in dir(diffusers) if c not in modules and not c.startswith("_")]
658 undocumented_objs = [c for c in objects if c not in documented_objs and not ignore_undocumented(c)]
659 if len(undocumented_objs) > 0:
660 raise Exception(
661 "The following objects are in the public init so should be documented:\n - "
662 + "\n - ".join(undocumented_objs)
663 )
664 check_docstrings_are_in_md()
665 check_model_type_doc_match()
666
667
668def check_model_type_doc_match():

Callers 1

check_repo_qualityFunction · 0.85

Calls 4

ignore_undocumentedFunction · 0.85

Tested by

no test coverage detected