-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (152 loc) · 4.56 KB
/
pyproject.toml
File metadata and controls
168 lines (152 loc) · 4.56 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[project]
name = "mcp-devbench"
# The version is now dynamic, managed by hatch-vcs.
# The `version` field will be populated automatically from the latest Git tag.
dynamic = ["version"]
description = "MCP DevBench - Docker container management server with MCP protocol support"
readme = "README.md"
authors = [
{ name = "Peter van Liesdonk", email = "peter@liesdonk.nl" },
{ name = "copilot-swe-agent[bot]", email = "198982749+Copilot@users.noreply.github.com" }
]
requires-python = ">=3.11"
dependencies = [
"fastmcp>=2.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"docker>=7.0.0",
"sqlalchemy>=2.0.0",
"alembic>=1.13.0",
"aiosqlite>=0.19.0",
"python-json-logger>=2.0.7",
"prometheus-client>=0.20.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-benchmark>=4.0.0",
"hypothesis>=6.0.0",
"ruff", # Version pinning not needed for top-level tools
"twine>=5.0.0",
"python-semantic-release>=10",
"pyright",
"pre-commit>=4.0.0",
"types-docker>=7.1.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.24.0",
"mkdocs-awesome-pages-plugin>=2.9.0",
"mkdocs-git-revision-date-localized-plugin>=1.2.0",
]
[project.scripts]
mcp-devbench = "mcp_devbench.server:main"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
# The regex used to extract the version from the git tag.
regex = "v(?P<version>.*)"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"e2e: End-to-end tests requiring Docker daemon (automatically skipped if Docker unavailable; deselect with '-m \"not e2e\"')",
"integration: Integration tests requiring external services",
"performance: Performance benchmarks",
"property: Property-based tests using Hypothesis",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["src/mcp_devbench"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
show_missing = true
precision = 2
# UPDATED: Ruff configuration with more rules and formatting
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# Expanded selection for more thorough linting
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.semantic_release]
version_source = "tag"
build_command = "uv build"
commit_message = "chore(release): {version}"
commit_parser = "conventional"
major_on_zero = true
tag_format = "v{version}"
upload_to_vcs_release = true
upload_to_pypi = false
[tool.semantic_release.changelog]
exclude_commit_patterns = []
[tool.semantic_release.branches]
main = { match = "main", prerelease = false }
next = { match = "next", prerelease = true, prerelease_token = "rc" }
[tool.semantic_release.commit_parser_options]
allowed_tags = ["chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.pyright]
pythonVersion = "3.11"
# Strict mode is the gold standard for type safety. It enforces complete
# type coverage and catches many potential runtime errors.
typeCheckingMode = "strict"
reportMissingTypeStubs = false
reportPrivateUsage = false
# Docker SDK doesn't have complete type stubs, so we disable these checks
reportUnknownVariableType = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownLambdaType = false
reportUnknownParameterType = false
# External libraries (FastMCP, SQLAlchemy) have incomplete type annotations
reportAttributeAccessIssue = false
reportCallIssue = false
reportArgumentType = false
# Additional suppressions for strict mode compatibility with external libs
reportMissingParameterType = false
reportMissingTypeArgument = false
reportUnnecessaryIsInstance = false
reportUnnecessaryComparison = false
reportOptionalMemberAccess = false
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
default_env = "GITHUB_TOKEN"