Files
cordra-mcp/pyproject.toml
daniel bfdc1d75ae fix: improve type checking and linting configuration
- Add mypy configuration with cordra module overrides
- Fix newline issues in __init__.py and server.py
- Update dependencies to use CordraPy from GitHub
- Add setuptools dependency for CordraPy compatibility
- Configure pytest with asyncio support

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-29 11:29:40 +02:00

66 lines
1.2 KiB
TOML

[project]
name = "mcp-cordra"
version = "0.1.0"
description = "MCP server for Cordra digital object repository"
authors = [
{name = "Daniel Bauer", email = "github@dbauer.me"},
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"mcp>=1.2.0",
"httpx>=0.25.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"cordrapy",
"setuptools>=80.9.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.1.0",
"mypy>=1.6.0",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"loguru>=0.7.0",
]
[project.scripts]
mcp-cordra = "mcp_cordra.server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py311"
line-length = 88
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
[tool.ruff.lint]
ignore = ["E501"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
[[tool.mypy.overrides]]
module = ["cordra.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-v"
[tool.uv.sources]
cordrapy = { git = "https://github.com/usnistgov/CordraPy.git" }
[dependency-groups]
dev = [
"pytest-asyncio>=1.0.0",
]