diffusers
4d89a887 - [modular] detect stale auto docstrings in CI + regenerate current ones (#14241)

Commit
18 days ago
[modular] detect stale auto docstrings in CI + regenerate current ones (#14241) * Regenerate stale modular auto docstrings Mechanical output of `python utils/modular_auto_docstring.py src/diffusers/modular_pipelines --fix_and_overwrite` on current main. These docstrings drifted because the CI check only verifies a docstring exists, not that its content matches the current block declarations. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Make auto docstring check detect stale content, not just missing docstrings Check mode now regenerates each # auto_docstring docstring the same way --fix_and_overwrite does (generate -> insert -> ruff/doc-builder format, on a temp copy) and compares with the checked-in file, reporting the stale classes. Works like check_copies: forgetting to run the fixer now fails CI on the PR that caused the drift, including when the causing change is in another file (leaf block declarations, templates, specs). The check now imports diffusers to evaluate doc properties, so the check_auto_docs CI job moves to the torch container with the test job's dependency install. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Author
Parents
Loading