-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (70 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
77 lines (70 loc) · 2.05 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "stacklet-mcp"
description = "MCP server for the Stacklet environment"
readme = "README.md"
maintainers = [ { name = "Stacklet Engineering", email = "foss+mcp-server@stacklet.io" } ]
authors = [ { name = "Stacklet Engineering", email = "foss+mcp-server@stacklet.io" } ]
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "version" ]
dependencies = [
"fastmcp>=2",
"graphql-core>=3.2",
"httpx>=0.28.1",
"pydantic>=2.11.7",
"pydantic-settings>=2.13,<2.14",
]
scripts.stacklet-mcp = "stacklet.mcp.mcp:main"
[dependency-groups]
dev = [
"add-license-header>=2.4",
"mypy>=1.8",
"pip", # mypy needs pip to auto-install type stubs; uv venvs don't include it by default
"pre-commit>=4.2",
"pyproject-fmt>=2.6",
"pytest>=7",
"pytest-asyncio>=0.21",
"pytest-cov>=7",
"ruff>=0.12",
"types-cachetools", # type stubs for mypy
"types-pyyaml", # type stubs for mypy
"types-requests", # type stubs for mypy
]
[tool.hatch]
build.targets.wheel.packages = [ "stacklet" ]
version.path = "stacklet/mcp/__init__.py"
[tool.ruff]
line-length = 100
# Add `line-too-long` and isort to the enforced rule set.
lint.extend-select = [ "E501", "I" ]
lint.isort.lines-after-imports = 2
# Use a single line between direct and from import.
lint.isort.lines-between-types = 1
[tool.pytest]
ini_options.asyncio_mode = "auto"
ini_options.addopts = "--no-cov-on-fail"
[tool.coverage]
report.fail_under = 94.0
report.show_missing = true
report.skip_covered = true
[tool.mypy]
strict = true
install_types = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
ignore_missing_imports = true
non_interactive = true
exclude = [ "tests/" ]
plugins = [ "pydantic.mypy" ]