pyproject.toml•4.03 kB
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rag-mcp-server"
version = "1.0.0"
description = "Python MCP server for RAG (Retrieval-Augmented Generation) operations"
authors = [
{name = "RAG Team", email = "rag@example.com"}
]
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = ["mcp", "rag", "retrieval-augmented-generation", "ai", "server"]
dependencies = [
"mcp==1.0.0",
"fastapi==0.115.5",
"uvicorn==0.32.1",
"requests==2.32.3",
"python-multipart==0.0.17",
"pydantic==2.10.3",
"python-dotenv==1.0.1",
]
[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.0.0",
"pre-commit>=3.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
]
[project.urls]
Homepage = "https://github.com/example/rag-mcp-server"
Repository = "https://github.com/example/rag-mcp-server"
Issues = "https://github.com/example/rag-mcp-server/issues"
Documentation = "https://github.com/example/rag-mcp-server#readme"
[project.scripts]
rag-mcp-server = "mcp_server:main"
[tool.hatch.build.targets.wheel]
packages = ["."]
exclude = [
"/.git",
"/.pytest_cache",
"/.mypy_cache",
"/.venv",
"/venv",
"__pycache__",
"*.pyc",
"*.pyo",
"*.pyd",
".DS_Store",
"/.env*",
"/test_*",
"/*.sh",
]
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| build
| dist
| __pycache__
)/
'''
[tool.ruff]
target-version = "py310"
line-length = 88
[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"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = [
".",
]
python_files = [
"test_*.py",
"*_test.py",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.coverage.run]
source = ["."]
omit = [
"test_*",
"*/test_*",
"*_test.py",
"*/tests/*",
".venv/*",
"venv/*",
]
[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",
]