dev/README.md
This directory contains development and maintenance scripts for the CocoIndex project.
generate_cli_docs.pyAutomatically generates CLI documentation from the CocoIndex Click commands.
Usage:
python dev/generate_cli_docs.py
What it does:
python/cocoindex/cli.pydocs/docs/core/cli.mdxIntegration:
python/cocoindex/cli.py is modifieddocs/docs/core/cli.mdx via MDX importDependencies:
md-click package for extracting Click help informationcocoindex package must be importable (the CLI module)This ensures that CLI documentation is always kept in sync with the actual command-line interface.
We provide a helper script to run mypy on each example entry point individually with minimal assumptions about optional dependencies.
mypy_check_examples.ps1Runs mypy for every main.py (and colpali_main.py) under the examples/ folder using these rules:
--follow-imports=silentMYPYPATH=pythonUsage (Windows PowerShell):
powershell -NoProfile -ExecutionPolicy Bypass -File dev/mypy_check_examples.ps1
Notes:
mypy installed (e.g. .venv with pip install mypy).