From c0fc9c65364ce43780ec90860960815dfc86795f Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Mon, 14 Jul 2025 12:12:35 -0700 Subject: [PATCH] chore: move all dev-only optional dependencies under `dev` --- .pre-commit-config.yaml | 2 +- docs/docs/about/contributing.md | 4 ++-- pyproject.toml | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b1d9bd0e..6b9f6a42b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: hooks: - id: maturin-develop name: maturin develop - entry: maturin develop -E all + entry: maturin develop -E all,dev language: system files: ^(python/|src/|Cargo\.toml|pyproject\.toml) pass_filenames: false diff --git a/docs/docs/about/contributing.md b/docs/docs/about/contributing.md index 96d568338..5a6c5a425 100644 --- a/docs/docs/about/contributing.md +++ b/docs/docs/about/contributing.md @@ -46,12 +46,12 @@ Following the steps below to get cocoindex build on latest codebase locally - if - Install required tools: ```sh - pip install maturin mypy pre-commit + pip install maturin ``` - Build the library. Run at the root of cocoindex directory: ```sh - maturin develop + maturin develop -E all,dev ``` - Install and enable pre-commit hooks. This ensures all checks run automatically before each commit: diff --git a/pyproject.toml b/pyproject.toml index 49984ce86..086b5bc68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,7 @@ module-name = "cocoindex._engine" features = ["pyo3/extension-module"] [project.optional-dependencies] -test = ["pytest"] -dev = ["ruff", "pre-commit"] +dev = ["pytest", "ruff", "mypy", "pre-commit"] embeddings = ["sentence-transformers>=3.3.1"] all = ["cocoindex[embeddings]"]