Skip to content

Commit d7e2bff

Browse files
committed
Add Python package configuration for test dependencies
- Add pyproject.toml with uv support for modern Python tooling - Update test_agentic_tools.py header to document installation options - Enables quick setup with: uv sync - Maintains backward compatibility with: pip install -r requirements-test.txt
1 parent 6357308 commit d7e2bff

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[project]
2+
name = "codegraph-tests"
3+
version = "1.0.0"
4+
description = "Test utilities for CodeGraph MCP server"
5+
requires-python = ">=3.8"
6+
dependencies = [
7+
"python-dotenv>=1.0.0",
8+
]
9+
10+
[project.optional-dependencies]
11+
dev = [
12+
"ruff>=0.1.0", # Linting and formatting
13+
]
14+
15+
[tool.uv]
16+
dev-dependencies = [
17+
"ruff>=0.1.0",
18+
]
19+
20+
[build-system]
21+
requires = ["hatchling"]
22+
build-backend = "hatchling.build"

test_agentic_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
#
1010
# REQUIREMENTS:
1111
# - SurrealDB must be running (local or cloud)
12-
# - python-dotenv: pip install python-dotenv
12+
# - Python dependencies:
13+
# uv sync # Recommended (installs from pyproject.toml)
14+
# OR
15+
# pip install -r requirements-test.txt
1316
#
1417
# Usage:
1518
# python3 test_agentic_tools.py

0 commit comments

Comments
 (0)