-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (80 loc) · 2.4 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (80 loc) · 2.4 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "my-mcp-server"
version = "1.0.0"
description = "An MCP server"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Heznpc" },
]
keywords = ["mcp", "mcp-server", "model-context-protocol"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"mcp>=1.27.1,<2",
]
[project.urls]
Homepage = "https://github.com/starter-series/python-mcp-server-starter"
Repository = "https://github.com/starter-series/python-mcp-server-starter"
Issues = "https://github.com/starter-series/python-mcp-server-starter/issues"
[project.scripts]
my-mcp-server = "my_mcp_server.__main__:run"
[project.optional-dependencies]
# Major-bounded so a breaking ruff/mypy/pytest release can't turn CI red overnight.
dev = [
"build>=1.5.0,<2",
"pip-audit>=2.10.1,<3",
"pip-licenses>=5.5.5,<6",
"pytest>=9.0.3,<10",
"pytest-asyncio>=1.4.0,<2",
"pytest-cov>=7.1.0,<8",
"ruff>=0.15.14,<1",
"mypy>=2.1.0,<3",
]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "S", "ASYNC", "RUF", "SIM"]
[tool.ruff.lint.per-file-ignores]
# pytest's primary API is `assert`.
"tests/**" = ["S101"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
show_error_codes = true
exclude = ["build/", "dist/"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
# Coverage flags live in ci.yml, not here — so `pytest tests/test_one.py` for a
# quick local check doesn't pay the instrumentation tax or fail on --cov-fail-under.
[tool.coverage.run]
branch = true
source = ["my_mcp_server"]
[tool.coverage.report]
# Defaults already cover `pragma: no cover`. Add patterns here when you
# introduce code that should NOT count against coverage — e.g.
# `if TYPE_CHECKING:` blocks, `raise NotImplementedError` stubs.
exclude_also = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.hatch.build.targets.wheel]
packages = ["src/my_mcp_server"]