[project]
name = "oxide"
version = "0.1.0"
description = "Intelligent LLM orchestration system for distributed AI resources"
readme = "README.md"
authors = [
{ name = "yayoboy", email = "esoglobine@gmail.com" }
]
requires-python = ">=3.11"
dependencies = [
"pyyaml>=6.0",
"aiohttp>=3.9.0",
"mcp>=1.0.0",
"pydantic>=2.0.0",
"httpx>=0.27.0",
"fastapi>=0.115.0",
"uvicorn>=0.32.0",
"psutil>=5.9.0",
"websockets>=12.0",
"watchdog>=6.0.0",
"python-jose[cryptography]>=3.5.0",
"passlib[bcrypt]>=1.7.4",
"slowapi>=0.1.9",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"pytest-timeout>=2.3.0",
"respx>=0.21.0",
"pyfakefs>=5.0.0",
"freezegun>=1.5.0",
]
[project.scripts]
oxide-mcp = "oxide.mcp.server:main"
oxide-web = "oxide.web.backend.main:main"
oxide-all = "oxide.launcher:main"
[build-system]
requires = ["uv_build>=0.8.22,<0.9.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pytest-cov>=7.0.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"slowapi>=0.1.9",
]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"tests/**/*.py" = ["ARG", "S101"] # Allow assert and unused args in tests
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
follow_imports = "normal"
[[tool.mypy.overrides]]
module = [
"yaml.*",
"aiohttp.*",
"mcp.*",
"watchdog.*",
"psutil.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--showlocals",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]