Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (81 loc) · 2.1 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (81 loc) · 2.1 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "nitrostack"
version = "0.4.2"
description = "NitroStack Python SDK — A Python-idiomatic port of the NitroStack MCP framework"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"mcp>=2,<3",
"pydantic>=2.0.0",
"starlette>=0.30.0",
"uvicorn>=0.20.0",
"watchfiles>=0.18.0",
"anyio>=4.0.0",
"packaging>=23.0.0",
"tomli>=2.0.0; python_version < '3.11'",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-timeout>=2.3.0",
"httpx>=0.27.0",
"tox>=4.0.0",
]
[project.urls]
Homepage = "https://nitrostack.ai/"
Documentation = "https://docs.nitrostack.ai/python"
Repository = "https://github.com/nitrocloudofficial/nitrostack-python-sdk"
Issues = "https://github.com/nitrocloudofficial/nitrostack-python-sdk/issues"
[project.scripts]
nitrostack-py = "nitrostack.cli.main:main"
[tool.setuptools.packages.find]
include = ["nitrostack*"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
nitrostack = ["templates/**/*", "templates/**/.*", "cli/templates/*", "transports/assets/*"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = []
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
ignore_missing_imports = true
strict_optional = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-q --timeout=60"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
source = ["nitrostack"]
omit = [
"nitrostack/templates/*",
"nitrostack/cli/templates/*",
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
# Phase 6 DoD floor; current suite measures ~86%.
fail_under = 50
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]