[project] name = "musehub" version = "0.2.0rc11" description = "MuseHub — remote collaboration, code intelligence, and MCP tooling for Muse VCS" readme = "README.md" license = {text = "MIT"} requires-python = ">=3.14" dependencies = [ "fastapi>=0.136.1", "jinja2>=3.1.6", "aiofiles>=25.1.0", "uvicorn[standard]>=0.46.0", "httpx[http2]>=0.28.1", "psutil>=7.2.2", "pydantic>=2.13.3", "pydantic-settings>=2.14.0", "websockets>=16.0", "sqlalchemy[asyncio]>=2.0.49", "asyncpg>=0.31.0", "alembic>=1.18.4", "psycopg2-binary>=2.9.12", "slowapi>=0.1.9", "cryptography>=48.0.0", "boto3>=1.43.3", "mido>=1.3.3", "pyyaml>=6.0.3", "mistune>=3.2.1", "typer>=0.25.1", "msgpack>=1.1.2", "zstandard>=0.25.0", ] [project.optional-dependencies] dev = [ "muse>=0.2.0", # VCS engine — bind-mounted at /src/muse in docker-compose.override.yml "muse_contracts>=0.2.0", # cross-repo wire contracts — bind-mounted at /src/contracts in docker-compose.override.yml "pytest>=9.0.3", "pytest-asyncio>=1.3.0", "pytest-cov>=7.1.0", "pytest-timeout>=2.3.1", "pytest-xdist>=3.6.1", "coverage>=7.13.0", "anyio>=4.13.0", "mypy>=1.20.0", "factory-boy>=3.3.3", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.pytest.ini_options] asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function" testpaths = ["tests"] cache_dir = "/tmp/pytest_cache" addopts = "-v --tb=short -p no:randomly" markers = [ "slow: tests that are slow or require external infrastructure — skip with -m 'not slow'", "migrations: tests that DROP/CREATE databases — run explicitly with -m migrations, never in the default suite", "tier1: unit tests — pure functions, no I/O", "tier2: integration tests — real DB via db_session fixture", "tier3: end-to-end tests — FastAPI TestClient round-trips", "tier4: stress tests — concurrency and idempotency under load", "tier5: data integrity tests — DB invariants", "tier6: performance tests — query latency with index coverage", "tier7: security tests — sig replay, cross-protocol, impersonation", ] filterwarnings = [ "ignore:The 'is_flag' and 'flag_value' parameters are not supported by Typer:DeprecationWarning", # slowapi uses asyncio.iscoroutinefunction which is deprecated in 3.14+. # This is a third-party library issue; suppress until slowapi ships a fix. "ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:slowapi", # slowapi references the starlette alias HTTP_422_UNPROCESSABLE_ENTITY which # is deprecated in favour of HTTP_422_UNPROCESSABLE_CONTENT. "ignore:'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated:DeprecationWarning:slowapi", # AsyncMock coroutines created inside wire_push are intentionally discarded # when the DB mock raises — the test only checks the warning log, not DB state. "ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning", ] [tool.coverage.run] source = ["musehub"] branch = true omit = ["musehub/__init__.py", "*/tests/*"] [tool.coverage.report] fail_under = 60 show_missing = true exclude_lines = [ "pragma: no cover", "def __repr__", "raise NotImplementedError", "if TYPE_CHECKING:", "if typing.TYPE_CHECKING:", ] [tool.mypy] python_version = "3.14" strict = true explicit_package_bases = true namespace_packages = true warn_unreachable = true show_error_codes = true mypy_path = "../contracts" [[tool.mypy.overrides]] module = ["tests.*"] disallow_untyped_decorators = false [[tool.mypy.overrides]] module = ["boto3", "botocore.*", "mido", "yaml", "qdrant_client", "qdrant_client.*", "msgpack"] ignore_missing_imports = true [tool.hatch.build.targets.wheel] packages = ["musehub"]