Skip to content
Open
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
23 changes: 12 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: tests
on:
push:
branches:
- master
- main
pull_request:
types:
- opened
Expand All @@ -24,7 +24,7 @@ jobs:
python-version: "3.10"
- name: Install dependencies
run: |
pip install .[lint]
pip install . --group lint
- name: Lint Python code with ruff
run: |
ruff check .
Expand All @@ -45,7 +45,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install ".[dev, memory]"
pip install ".[memory]" --group dev
- name: Run tests
run: |
pytest tests/
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install integrations/langchain[dev]
pip install integrations/langchain --group dev
- name: Run tests
run: |
pytest integrations/langchain/tests/unit_tests
Expand All @@ -87,7 +87,7 @@ jobs:
- name: Install dependencies
run: |
pip install .[memory]
pip install "integrations/langchain[dev, memory]"
pip install "integrations/langchain[memory]" --group dev
- name: Run tests
run: |
pytest tests/databricks_ai_bridge/test_lakebase.py
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
cp -r older-version/integrations/langchain integrations/
- name: Install langchain dependency
run: |
pip install integrations/langchain[dev]
pip install integrations/langchain --group dev
- name: Run tests
run: |
# Only testing initialization since functionality can change
Expand All @@ -156,7 +156,7 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install integrations/openai[dev]
pip install integrations/openai --group dev
- name: Run tests
run: |
pytest integrations/openai/tests/unit_tests
Expand Down Expand Up @@ -198,7 +198,8 @@ jobs:
cp -r older-version/integrations/openai integrations/
- name: Install openai dependency
run: |
pip install integrations/openai[dev]
pip install .
pip install integrations/openai --group dev
- name: Run tests
run: |
# Only testing initialization since functionality can change
Expand All @@ -220,7 +221,7 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install integrations/llamaindex[dev]
pip install integrations/llamaindex --group dev
- name: Run tests
run: |
pytest integrations/llamaindex/tests/unit_tests
Expand All @@ -241,7 +242,7 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install -e databricks_mcp[dev]
pip install -e databricks_mcp --group dev
- name: Run tests
run: |
pytest databricks_mcp/tests/unit_tests
Expand All @@ -262,7 +263,7 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install integrations/dspy[dev]
pip install integrations/dspy --group dev
- name: Run tests
run: |
pytest integrations/dspy/tests/unit_tests
2 changes: 1 addition & 1 deletion databricks_mcp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"mlflow>=3.1"
]

[project.optional-dependencies]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
Expand Down
2 changes: 1 addition & 1 deletion integrations/dspy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"mlflow>=3.0.0",
]

[project.optional-dependencies]
[dependency-groups]
dev = [
"pytest",
"ruff",
Expand Down
10 changes: 6 additions & 4 deletions integrations/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ dependencies = [
]

[project.optional-dependencies]
memory = [
"langgraph-checkpoint-postgres>=2.0.0",
"databricks-ai-bridge[memory]>=0.10.0",
]

[dependency-groups]
dev = [
"pytest",
"typing_extensions",
Expand All @@ -33,10 +39,6 @@ integration = [
"anyio",
]

memory = [
"langgraph-checkpoint-postgres>=2.0.0",
"databricks-ai-bridge[memory]>=0.10.0",
]

[build-system]
requires = ["hatchling"]
Expand Down
4 changes: 2 additions & 2 deletions integrations/llamaindex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"unitycatalog-llamaindex[databricks]>=0.2.0",
]

[project.optional-dependencies]
[dependency-groups]
dev = [
"pytest",
"typing_extensions",
Expand Down Expand Up @@ -69,4 +69,4 @@ docstring-code-format = true
docstring-code-line-length = 88

[tool.ruff.lint.pydocstyle]
convention = "google"
convention = "google"
2 changes: 1 addition & 1 deletion integrations/openai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"openai-agents>=0.5.0"
]

[project.optional-dependencies]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
Expand Down
27 changes: 14 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ dependencies = [
[project.license]
file = "LICENSE.txt"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
include = [
"src/*"
[project.optional-dependencies]
memory = [
"psycopg[binary,pool]>=3.1",
]

[tool.hatch.build.targets.wheel]
packages = ["src/databricks_ai_bridge"]

[project.optional-dependencies]
[dependency-groups]
dev = [
"hatch",
"pytest",
Expand All @@ -56,10 +49,18 @@ lint = [
"ruff==0.12.10",
]

memory = [
"psycopg[binary,pool]>=3.1",
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
include = [
"src/*"
]

[tool.hatch.build.targets.wheel]
packages = ["src/databricks_ai_bridge"]

[tool.ruff]
line-length = 100
target-version = "py39"
Expand Down