-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (110 loc) · 2.89 KB
/
pyproject.toml
File metadata and controls
124 lines (110 loc) · 2.89 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[project]
name = "nsforge-mcp"
version = "0.2.4"
description = "Neurosymbolic Forge - Where Neural Meets Symbolic. MCP Server for precise symbolic reasoning with AI agents."
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.12"
authors = [
{ name = "NSForge Team" }
]
keywords = [
"mcp",
"symbolic-reasoning",
"neural-symbolic",
"sympy",
"ai-agents",
"model-context-protocol",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
# Core symbolic computation
"sympy>=1.13",
# MCP SDK with FastMCP
"mcp>=1.0.0",
# Data validation
"pydantic>=2.0",
# YAML parsing for DSL
"pyyaml>=6.0",
"pint>=0.25.2",
"scipy>=1.16.3",
# HTTP client for external APIs (Wikidata, BioModels)
"httpx>=0.27",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.23",
"ruff>=0.5",
"mypy>=1.10",
]
[project.scripts]
nsforge-mcp = "nsforge_mcp.server:main"
[project.urls]
Homepage = "https://github.com/u9401066/nsforge-mcp"
Documentation = "https://github.com/u9401066/nsforge-mcp/tree/master/docs"
Repository = "https://github.com/u9401066/nsforge-mcp"
Issues = "https://github.com/u9401066/nsforge-mcp/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/nsforge", "src/nsforge_mcp"]
[tool.ruff]
target-version = "py312"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["nsforge", "nsforge_mcp"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_ignores = true
# MCP 工具裝飾器沒有完整類型標註,允許未標註的裝飾器
disallow_untyped_decorators = false
# 允許第三方庫缺少類型標註
[[tool.mypy.overrides]]
module = [
"sympy.*",
"mcp.*",
"yaml.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-v --cov=src --cov-report=term-missing"
[dependency-groups]
dev = [
"bandit>=1.9.3",
"black>=26.1.0",
"pylint>=4.0.4",
"safety>=3.7.0",
]