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>
This commit is contained in:
daniel
2025-06-29 11:29:40 +02:00
parent ba77019291
commit bfdc1d75ae
4 changed files with 89 additions and 22 deletions

View File

@@ -10,10 +10,11 @@ license = "MIT"
requires-python = ">=3.11"
dependencies = [
"mcp>=1.2.0",
"CordraPy",
"httpx>=0.25.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"cordrapy",
"setuptools>=80.9.0",
]
[project.optional-dependencies]
@@ -46,7 +47,19 @@ 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 = "--cov=src/mcp_cordra --cov-report=term-missing"
addopts = "-v"
[tool.uv.sources]
cordrapy = { git = "https://github.com/usnistgov/CordraPy.git" }
[dependency-groups]
dev = [
"pytest-asyncio>=1.0.0",
]