-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (103 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
118 lines (103 loc) · 2.92 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
[project]
name = "modelscope-mcp-server"
dynamic = ["version"]
description = "A Model Context Protocol (MCP) server that integrates with ModelScope's ecosystem."
readme = "README.md"
authors = [
{ name = "ModelScope Team", email = "contact@modelscope.cn" }
]
license = { file = "LICENSE" }
requires-python = ">=3.10"
dependencies = [
"fastmcp>=2.10.6",
"httpx[http2]>=0.27.0",
"pydantic-settings>=2.10.1",
]
keywords = [
"modelscope",
"mcp",
"model-context-protocol",
"llm",
"ai",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
]
[project.urls]
"Homepage" = "https://github.com/modelscope/modelscope-mcp-server"
"Bug Tracker" = "https://github.com/modelscope/modelscope-mcp-server/issues"
[project.scripts]
modelscope-mcp-server = "modelscope_mcp_server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/modelscope_mcp_server/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/modelscope_mcp_server"]
[dependency-groups]
dev = [
"coverage[toml]>=7.10.0",
"pre-commit>=4.2.0",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-cov>=6.2.1",
"pytest-env>=1.1.5",
"pytest-mock>=3.14.1",
"pyright>=1.1.403",
"ruff>=0.12.5",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = ["-m", "not slow"]
env = [
"MODELSCOPE_LOG_LEVEL=INFO",
]
markers = [
"integration: marks tests as integration tests (require external dependencies)",
"slow: marks tests as slow (may take a long time to run)",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
precision = 2
[tool.pyright]
include = ["src", "tests"]
exclude = ["**/__pycache__"]
pythonVersion = "3.10"
typeCheckingMode = "basic"
reportMissingImports = true
reportMissingTypeStubs = false
useLibraryCodeForTypes = true
venvPath = "."
venv = ".venv"
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle errors (PEP 8 style violations)
"W", # pycodestyle warnings (PEP 8 style warnings)
"F", # pyflakes (unused imports, variables, etc.)
"I", # isort (import sorting and organization)
"B", # flake8-bugbear (common bug patterns)
"UP", # pyupgrade (Python version upgrade suggestions)
"D", # pydocstyle (docstring style checking)
]
ignore = [
"D203", # 1 blank line required before class docstring (conflicts with D211)
"D213", # Multi-line docstring summary should start at the second line (conflicts with D212)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["D"]
[tool.ruff.lint.isort]
known-first-party = ["modelscope_mcp_server"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"