forked from HomeLab/unraid-mcp
156 lines
3.4 KiB
TOML
156 lines
3.4 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "unraid-mcp"
|
|
version = "0.1.0"
|
|
description = "MCP Server for Unraid API - provides tools to interact with an Unraid server's GraphQL API"
|
|
authors = [
|
|
{name = "jmagar", email = "jmagar@users.noreply.github.com"}
|
|
]
|
|
readme = "README.md"
|
|
license = {text = "MIT"}
|
|
requires-python = ">=3.10"
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
]
|
|
keywords = ["unraid", "mcp", "graphql", "api", "server"]
|
|
|
|
dependencies = [
|
|
"python-dotenv>=1.1.1",
|
|
"fastmcp>=2.11.2",
|
|
"httpx>=0.28.1",
|
|
"fastapi>=0.116.1",
|
|
"uvicorn>=0.35.0",
|
|
"websockets>=13.1,<14.0",
|
|
"rich>=14.1.0",
|
|
"pytz>=2025.2",
|
|
"mypy>=1.17.1",
|
|
"ruff>=0.12.8",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.4.1",
|
|
"pytest-asyncio>=1.1.0",
|
|
"black>=25.1.0",
|
|
"ruff>=0.12.8",
|
|
"mypy>=1.17.1",
|
|
"types-python-dateutil",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/jmagar/unraid-mcp"
|
|
Repository = "https://github.com/jmagar/unraid-mcp"
|
|
Issues = "https://github.com/jmagar/unraid-mcp/issues"
|
|
|
|
[project.scripts]
|
|
unraid-mcp-server = "unraid_mcp.main:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
only-include = ["unraid_mcp/"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py310']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
# directories
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| build
|
|
| dist
|
|
)/
|
|
'''
|
|
|
|
[tool.ruff]
|
|
target-version = "py310"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = [
|
|
"E501", # line too long, handled by black
|
|
"B008", # do not perform function calls in argument defaults
|
|
"C901", # too complex
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
check_untyped_defs = true
|
|
disallow_any_generics = true
|
|
disallow_incomplete_defs = true
|
|
disallow_untyped_defs = true
|
|
no_implicit_optional = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
warn_return_any = true
|
|
strict_equality = true
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py", "*_test.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = [
|
|
"-ra",
|
|
"--strict-markers",
|
|
"--strict-config",
|
|
"--cov=unraid_mcp",
|
|
"--cov-report=term-missing",
|
|
"--cov-report=html",
|
|
"--cov-report=xml",
|
|
]
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests as integration tests",
|
|
]
|
|
|
|
[tool.coverage.run]
|
|
source = ["unraid_mcp"]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"if self.debug:",
|
|
"if settings.DEBUG",
|
|
"raise AssertionError",
|
|
"raise NotImplementedError",
|
|
"if 0:",
|
|
"if __name__ == .__main__.:",
|
|
"class .*\\bProtocol\\):",
|
|
"@(abc\\.)?abstractmethod",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"types-pytz>=2025.2.0.20250809",
|
|
]
|