You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: clean up griffe warnings, add CI workflow, drop suppression hook
Fix the 29 griffe diagnostics that the build was previously silencing
via scripts/mkdocs_hooks.py so that mkdocs build --strict passes on
unmodified source.
Source-level docstring fixes:
* redisvl/extensions/cache/llm/semantic.py: remove stray space in
filter_expression type annotations; add missing colons in the
Raises blocks for update / aupdate.
* redisvl/extensions/cache/llm/langcache.py: type the **kwargs
documentation on update / aupdate.
* redisvl/extensions/message_history/semantic_history.py: fix the
hanging continuation line in the as_text Args entry.
* redisvl/extensions/router/semantic.py: align Args names with the
function signatures (route_name, reference_ids, keys) on
add_route_references / get_route_references / delete_route_references
and clean up malformed Optional() syntax.
* redisvl/query/query.py: type *fields, drop the bogus self return
name, add a BaseQuery return annotation on return_fields, and
rename text_weights to weights in set_text_weights to match the
signature.
* redisvl/index/index.py: add BaseSearchIndex return annotations to
from_yaml and from_dict so griffe stops flagging the Returns block.
* redisvl/utils/vectorize/base.py: type the **kwargs documentation
on embed / embed_many / aembed / aembed_many and add a
Generator[list, None, None] return annotation on batchify.
* redisvl/utils/vectorize/text/huggingface.py: type the **kwargs
documentation on __init__.
Build pipeline:
* Drop scripts/mkdocs_hooks.py and the matching hooks: entry from
mkdocs.yml. mkdocs build --strict now exits 0 with zero griffe
warnings.
* Add .github/workflows/docs.yml to run mkdocs build --strict on
every PR that touches docs, mkdocs config, source, or this
workflow, and on every push to main. Uploads the rendered site as
a build artifact for review.
Verified locally with mkdocs build --strict (clean) and mypy on the
edited modules (clean).
0 commit comments