-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
88 lines (79 loc) · 2.23 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = "mcp_chat"
# version = "0.1.0"
description = "A demonstration reflex chat app utilizing MCP servers with LangGraph."
readme = "README.md"
requires-python = ">=3.13"
authors = [
{ name = "Tim Child", email = "[email protected]" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Typing :: Typed",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
# "Framework :: Reflex", # Should be added once this is accepted
]
dependencies = [
"aiosqlite>=0.21.0",
"dependency-injector>=4.46.0",
"langchain-anthropic>=0.3.10",
"langchain-mcp-adapters>=0.0.3",
"langchain-openai>=0.3.11",
"langgraph>=0.3.21",
# "langgraph-checkpoint-postgres>=2.0.19",
"langgraph-checkpoint-sqlite>=2.0.6",
"openai>=1.14.0",
"python-dotenv>=1.1.0",
# "psycopg2-binary>=2.9.10",
"reflex>=0.7.0",
"reflex-chakra>=0.7.0",
"reflex-github-button>=0.1.2",
]
dynamic = ["version"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "mcp_chat/__init__.py"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "ANN"]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = [
"ANN201", # No return type
"ANN401", # Any for kwargs
]
[tool.pyright]
typeCheckingMode = "standard"
venvPath = "."
venv = ".venv"
[dependency-groups]
test = [
"ruff>=0.11.4",
"pyright>=1.1.398",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-pretty>=1.2.0",
"pytest-timeout>=2.3.1",
]
dev = [
"pre-commit>=4.2.0",
{include-group = "test"},
]
[tool.pytest.ini_options]
#log_cli = true
#log_cli_level = "DEBUG"
timeout = 300 # Global timeout for all tests (prevent indefinite hangs, but cancels all tests)
asyncio_mode = "auto" # Automatically detects async test functions and fixtures and treats them as marked
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
"error",
"ignore::DeprecationWarning:langchain_core",
"ignore::DeprecationWarning:langgraph",
"ignore::DeprecationWarning:pydantic.v1.typing",
"ignore::RuntimeWarning:pydantic.v1.main",
]