gabriel / musehub public
pyproject.toml toml
116 lines 3.7 KB
Raw
sha256:a34090cc4a394a78bd72cbbe34b08cc59525141e19135b6c0ab154f10611b9ef debug(push/stream): instrument O-frame decode path with INF… Sonnet 4.6 patch 121 days ago
1 [project]
2 name = "musehub"
3 version = "0.2.0rc7"
4 description = "MuseHub — remote collaboration, code intelligence, and MCP tooling for Muse VCS"
5 readme = "README.md"
6 license = {text = "MIT"}
7 requires-python = ">=3.14"
8 dependencies = [
9 "fastapi>=0.136.1",
10 "jinja2>=3.1.6",
11 "aiofiles>=25.1.0",
12 "uvicorn[standard]>=0.46.0",
13 "httpx[http2]>=0.28.1",
14 "psutil>=7.2.2",
15 "pydantic>=2.13.3",
16 "pydantic-settings>=2.14.0",
17 "websockets>=16.0",
18 "sqlalchemy[asyncio]>=2.0.49",
19 "asyncpg>=0.31.0",
20 "alembic>=1.18.4",
21 "psycopg2-binary>=2.9.12",
22 "slowapi>=0.1.9",
23 "cryptography>=48.0.0",
24 "boto3>=1.43.3",
25 "mido>=1.3.3",
26 "pyyaml>=6.0.3",
27 "mistune>=3.2.1",
28 "typer>=0.25.1",
29 "msgpack>=1.1.2",
30 "zstandard>=0.25.0",
31 ]
32
33
34 [project.optional-dependencies]
35 dev = [
36 "muse>=0.2.0", # VCS engine — bind-mounted at /src/muse in docker-compose.override.yml
37 "muse_contracts>=0.2.0", # cross-repo wire contracts — bind-mounted at /src/contracts in docker-compose.override.yml
38 "pytest>=9.0.3",
39 "pytest-asyncio>=1.3.0",
40 "pytest-cov>=7.1.0",
41 "pytest-timeout>=2.3.1",
42 "pytest-xdist>=3.6.1",
43 "coverage>=7.13.0",
44 "anyio>=4.13.0",
45 "mypy>=1.20.0",
46 "factory-boy>=3.3.3",
47 ]
48
49 [build-system]
50 requires = ["hatchling"]
51 build-backend = "hatchling.build"
52
53 [tool.pytest.ini_options]
54 asyncio_mode = "auto"
55 asyncio_default_fixture_loop_scope = "function"
56 testpaths = ["tests"]
57 cache_dir = "/tmp/pytest_cache"
58 addopts = "-v --tb=short -p no:randomly -m 'not migrations'"
59 markers = [
60 "migrations: tests that DROP/CREATE databases — run explicitly with -m migrations, never in the default suite",
61 "tier1: unit tests — pure functions, no I/O",
62 "tier2: integration tests — real DB via db_session fixture",
63 "tier3: end-to-end tests — FastAPI TestClient round-trips",
64 "tier4: stress tests — concurrency and idempotency under load",
65 "tier5: data integrity tests — DB invariants",
66 "tier6: performance tests — query latency with index coverage",
67 "tier7: security tests — sig replay, cross-protocol, impersonation",
68 ]
69 filterwarnings = [
70 "ignore:The 'is_flag' and 'flag_value' parameters are not supported by Typer:DeprecationWarning",
71 # slowapi uses asyncio.iscoroutinefunction which is deprecated in 3.14+.
72 # This is a third-party library issue; suppress until slowapi ships a fix.
73 "ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:slowapi",
74 # slowapi references the starlette alias HTTP_422_UNPROCESSABLE_ENTITY which
75 # is deprecated in favour of HTTP_422_UNPROCESSABLE_CONTENT.
76 "ignore:'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated:DeprecationWarning:slowapi",
77 # AsyncMock coroutines created inside wire_push are intentionally discarded
78 # when the DB mock raises — the test only checks the warning log, not DB state.
79 "ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning",
80 ]
81
82 [tool.coverage.run]
83 source = ["musehub"]
84 branch = true
85 omit = ["musehub/__init__.py", "*/tests/*"]
86
87 [tool.coverage.report]
88 fail_under = 60
89 show_missing = true
90 exclude_lines = [
91 "pragma: no cover",
92 "def __repr__",
93 "raise NotImplementedError",
94 "if TYPE_CHECKING:",
95 "if typing.TYPE_CHECKING:",
96 ]
97
98 [tool.mypy]
99 python_version = "3.14"
100 strict = true
101 explicit_package_bases = true
102 namespace_packages = true
103 warn_unreachable = true
104 show_error_codes = true
105 mypy_path = "../contracts"
106
107 [[tool.mypy.overrides]]
108 module = ["tests.*"]
109 disallow_untyped_decorators = false
110
111 [[tool.mypy.overrides]]
112 module = ["boto3", "botocore.*", "mido", "yaml", "qdrant_client", "qdrant_client.*", "msgpack"]
113 ignore_missing_imports = true
114
115 [tool.hatch.build.targets.wheel]
116 packages = ["musehub"]
File History 1 commit
sha256:a34090cc4a394a78bd72cbbe34b08cc59525141e19135b6c0ab154f10611b9ef debug(push/stream): instrument O-frame decode path with INF… Sonnet 4.6 patch 121 days ago