Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
python -m venv .venv
- name: Install Python toolchains
run: |
${{ matrix.platform.python_exec }} -m pip install maturin mypy pytest pytest-asyncio
${{ matrix.platform.python_exec }} -m pip install maturin
- name: Python build
run: |
${{ matrix.platform.python_exec }} -m maturin develop --strip -E all
${{ matrix.platform.python_exec }} -m maturin develop --strip -E all-ci
- name: Python type check (mypy)
run: |
${{ matrix.platform.python_exec }} -m mypy python
Expand Down
18 changes: 5 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,13 @@ dev = ["pytest", "pytest-asyncio", "ruff", "mypy", "pre-commit"]
embeddings = ["sentence-transformers>=3.3.1"]
colpali = ["colpali-engine"]
lancedb = ["lancedb>=0.25.0"]
pydantic = ["pydantic>=2.11.9"]

# We need to repeat the dependency above to make it available for the `all` feature.
# Indirect dependencies such as "cocoindex[embeddings]" will not work for local development.
all = [
"sentence-transformers>=3.3.1",
"colpali-engine",
"lancedb>=0.25.0",
"pydantic>=2.11.9",
]
all = ["sentence-transformers>=3.3.1", "colpali-engine", "lancedb>=0.25.0"]

# This is the set of dependencies that needs to be installed for the CI workflow.
all-ci = ["pytest", "pytest-asyncio", "mypy", "pydantic>=2.11.9"]

[tool.mypy]
python_version = "3.11"
Expand All @@ -87,10 +84,5 @@ files = "python/cocoindex"
exclude = "(\\.venv|site-packages)"
disable_error_code = ["unused-ignore"]
[[tool.mypy.overrides]]
module = [
"sentence_transformers",
"torch",
"colpali_engine",
"PIL",
]
module = ["sentence_transformers", "torch", "colpali_engine", "PIL"]
ignore_missing_imports = true
Loading