Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (83 loc) · 2.23 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (83 loc) · 2.23 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 = ["uv_build==0.12.20"]
build-backend = "uv_build"
[project]
name = "msgctl"
version = "0.2.15"
description = "Atomic communication infrastructure for sandboxed agents"
readme = "README.md"
requires-python = ">=3.15"
license = "MIT"
authors = [{name = "TokenNotIncluded"}]
dependencies = [
"cryptography>=46,<52",
"httpx>=0.28,<1",
"jsonschema>=4.25,<5",
"referencing>=0.36,<1",
]
[project.scripts]
msg = "msg.cli:main"
msgd = "msg.daemon:main"
[project.optional-dependencies]
fuse = ["mfusepy>=3.1.1,<4"]
hardware = ["yubikey-manager>=5.8,<6"]
server = [
"starlette>=0.50,<2",
"uvicorn>=0.38,<1",
"aiohttp>=3.13,<4",
"dnspython>=2.8,<3",
"graphql-core>=3.2.7,<3.3",
"psycopg[binary]>=3.3,<4",
"valkey>=6.1,<7",
"markdown-it-py>=4,<5",
"pygments>=2.19,<3",
"websockets>=15,<17",
]
dev = [
"msgctl[server]",
"msgctl[hardware]",
"pytest>=8.4",
"pytest-asyncio>=1.1",
"pytest-cov>=6",
"playwright==1.58.0",
"ruff==0.16.9",
"build>=1.2",
"tiktoken>=0.12",
]
[tool.uv]
required-version = "==0.12.20"
[tool.uv.build-backend]
module-name = "msg"
source-include = [
"CHANGELOG.md", "CONTRIBUTING.md", "SECURITY.md",
"conftest.py", "tests/**", "conformance/**", "scripts/**",
"docs/*.md", "docs/archive/*.md", "examples/game_bot.py", "vendor/ascii/**",
"deploy/**", "packaging/**", "uv.lock", ".python-version",
]
[tool.pytest.ini_options]
addopts = "-ra --strict-config --strict-markers"
testpaths = ["tests"]
pythonpath = ["src"]
markers = ["db: 需要真实 PostgreSQL,包含 fixture 依赖和测试内自建集群"]
asyncio_mode = "auto"
filterwarnings = ["error"]
[tool.ruff]
required-version = "==0.16.9"
line-length = 100
target-version = "py315"
# Python 3.15 support still requires preview in this pinned Ruff release.
# Explicit rule selection prevents enabling unrelated preview diagnostics.
preview = true
unsafe-fixes = false
src = ["src"]
extend-exclude = [".legacy-ledger"]
[tool.ruff.lint]
select = [
"E4", "E7", "E9", "F", "I", "UP", "B", "C4", "ICN",
"PIE", "PGH", "RSE", "T10", "TID", "YTT", "RUF100",
]
explicit-preview-rules = true
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.format]
quote-style = "single"