[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "langchain-documentation-server"
version = "1.0.0"
description = "Real-time LangChain API reference and documentation service"
authors = [{name = "Your Name", email = "your.email@example.com"}]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.11"
keywords = ["langchain", "documentation", "fastapi", "mcp"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Framework :: FastAPI",
]
dependencies = [
"fastapi==0.115.14",
"uvicorn==0.35.0",
"pydantic==2.11.7",
"httpx==0.28.1",
"beautifulsoup4==4.13.4",
"requests==2.32.4",
"mcp==1.10.1",
"fastapi-mcp==0.3.4",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.24.0",
]
[project.scripts]
langchain-server = "src.main:main"
[project.urls]
Homepage = "https://github.com/yourusername/mcp-server-with-fastapi"
Repository = "https://github.com/yourusername/mcp-server-with-fastapi.git"
Documentation = "https://github.com/yourusername/mcp-server-with-fastapi#readme"
# Black configuration
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.venv
| __pycache__
| build
| dist
)/
'''
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--disable-warnings",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
# Coverage configuration
[tool.coverage.run]
source = ["src"]
omit = [
"tests/*",
"*/test_*",
"src/config/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
# MyPy configuration
[tool.mypy]
python_version = "3.11"
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
[[tool.mypy.overrides]]
module = ["bs4.*", "mcp.*"]
ignore_missing_imports = true
# Flake8 configuration (via setup.cfg since pyproject.toml not fully supported)
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503"]
exclude = [
".git",
"__pycache__",
".venv",
"build",
"dist",
]