gabriel / musehub public
pyproject.toml toml
117 lines 3.8 KB
Raw
sha256:94ef169c149a452bff7c604ded8b280b19bd477c2dabcb56972780b0b784c7aa Merge 'fix/assignee-sigil-inline' into 'dev' — proposal: As… Human 1 day ago
1 [project]
2 name = "musehub"
3 version = "0.2.0rc11"
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"
59 markers = [
60 "slow: tests that are slow or require external infrastructure — skip with -m 'not slow'",
61 "migrations: tests that DROP/CREATE databases — run explicitly with -m migrations, never in the default suite",
62 "tier1: unit tests — pure functions, no I/O",
63 "tier2: integration tests — real DB via db_session fixture",
64 "tier3: end-to-end tests — FastAPI TestClient round-trips",
65 "tier4: stress tests — concurrency and idempotency under load",
66 "tier5: data integrity tests — DB invariants",
67 "tier6: performance tests — query latency with index coverage",
68 "tier7: security tests — sig replay, cross-protocol, impersonation",
69 ]
70 filterwarnings = [
71 "ignore:The 'is_flag' and 'flag_value' parameters are not supported by Typer:DeprecationWarning",
72 # slowapi uses asyncio.iscoroutinefunction which is deprecated in 3.14+.
73 # This is a third-party library issue; suppress until slowapi ships a fix.
74 "ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:slowapi",
75 # slowapi references the starlette alias HTTP_422_UNPROCESSABLE_ENTITY which
76 # is deprecated in favour of HTTP_422_UNPROCESSABLE_CONTENT.
77 "ignore:'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated:DeprecationWarning:slowapi",
78 # AsyncMock coroutines created inside wire_push are intentionally discarded
79 # when the DB mock raises — the test only checks the warning log, not DB state.
80 "ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning",
81 ]
82
83 [tool.coverage.run]
84 source = ["musehub"]
85 branch = true
86 omit = ["musehub/__init__.py", "*/tests/*"]
87
88 [tool.coverage.report]
89 fail_under = 60
90 show_missing = true
91 exclude_lines = [
92 "pragma: no cover",
93 "def __repr__",
94 "raise NotImplementedError",
95 "if TYPE_CHECKING:",
96 "if typing.TYPE_CHECKING:",
97 ]
98
99 [tool.mypy]
100 python_version = "3.14"
101 strict = true
102 explicit_package_bases = true
103 namespace_packages = true
104 warn_unreachable = true
105 show_error_codes = true
106 mypy_path = "../contracts"
107
108 [[tool.mypy.overrides]]
109 module = ["tests.*"]
110 disallow_untyped_decorators = false
111
112 [[tool.mypy.overrides]]
113 module = ["boto3", "botocore.*", "mido", "yaml", "qdrant_client", "qdrant_client.*", "msgpack"]
114 ignore_missing_imports = true
115
116 [tool.hatch.build.targets.wheel]
117 packages = ["musehub"]
File History 3 commits
sha256:94ef169c149a452bff7c604ded8b280b19bd477c2dabcb56972780b0b784c7aa Merge 'fix/assignee-sigil-inline' into 'dev' — proposal: As… Human 1 day ago
sha256:6b1949fc2797ca4c1936a637a4cbfec828ef56cf52398a2e74ca3c4f494e728f fix: use wire_bytes not mpack_bytes_raw in compute_object_b… Sonnet 4.6 patch 9 days ago
sha256:4aed3d8601c8dd3ed37074de35f11f4a9699a0a4b99d43727048fd3f8e6fd13d chore: doc sweep, ignore wrangler build state, misc fixes Sonnet 4.6 minor 12 days ago