pyproject.toml•2.69 kB
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-sfd"
version = "0.1.0"
description = "MCP Server for Seattle Fire Department Live Incident Proxy"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "Your Name", email = "your.email@example.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"mcp>=1.0.0",
"httpx[brotli]>=0.25.0",
"pydantic>=2.0.0",
"pytz>=2023.3",
"uvloop>=0.19.0;platform_system!='Windows'",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"types-pytz",
]
[project.scripts]
mcp-sfd = "mcp_sfd.server:main"
[tool.black]
line-length = 88
target-version = ["py311"]
[tool.ruff]
line-length = 88
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
]
ignore = [
"E501", # line too long, handled by black
"B008", # function calls in argument defaults are fine for FastAPI Depends/Query
]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
# Allow untyped decorators since MCP library doesn't have type stubs
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "mcp.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mcp_sfd.server"
disable_error_code = ["misc", "no-untyped-call"]
[[tool.mypy.overrides]]
module = "seattle_api.*"
disable_error_code = ["no-untyped-def", "no-untyped-call", "call-arg", "union-attr", "return-value", "comparison-overlap", "type-arg", "assignment", "import-untyped", "arg-type", "misc"]
[[tool.mypy.overrides]]
module = "*.tests.*"
disable_error_code = ["no-untyped-def", "no-untyped-call", "call-arg", "arg-type", "assignment"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["mcp_sfd/tests", "seattle_api/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["mcp_sfd"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
]