openapi-mcp-server/pyproject.toml
Tom Foster 719d4ecba4
All checks were successful
CI / Lint & Test (push) Successful in 23s
CI / Build and push Docker image (push) Successful in 1m22s
Update endpoint paths and lint codebase
2025-08-01 21:37:26 +01:00

141 lines
3.3 KiB
TOML

[project]
name = "openapi-mcp-server"
version = "0.1.0"
description = "An OpenAPI-compatible server for the Multi-agent Conversation Platform (MCP)."
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "Tom Foster", email = "tom@tcpip.uk" }]
maintainers = [{ name = "Tom Foster", email = "tom@tcpip.uk" }]
requires-python = ">=3.13"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Topic :: Communications :: Chat",
"Framework :: AsyncIO",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"fastapi>=0",
"pydantic>=2",
"pydantic-settings>=2",
"python-dateutil>=2",
"python-multipart>=0",
"pytz>=2025",
"httpx>=0",
"requests>=2",
"reverse-geocoder>=1",
"trafilatura>=2",
"uvicorn[standard]>=0",
"pyyaml>=6",
"geopy>=2",
]
[project.urls]
Homepage = "https://git.tomfos.tr/tom/openapi-mcp-server"
[dependency-groups]
dev = [
"httpx>=0",
"mypy>=1",
"pytest>=8",
"pytest-asyncio>=0",
"pytest-cov>=0",
"pytest-mock>=0",
"respx>=0",
"ruff>=0",
"types-requests>=2",
"types-python-dateutil>=2",
"types-pytz>=2025",
"types-pyyaml>=6",
]
[tool.uv]
package = true
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project.scripts]
openapi-mcp-server = "openapi_mcp_server.__main__:launch"
[tool.setuptools]
packages = { find = {} }
[tool.ruff]
cache-dir = "/tmp/.ruff_cache"
fix = true
line-length = 100
preview = true
show-fixes = false
target-version = "py313"
unsafe-fixes = true
[tool.ruff.format]
line-ending = "auto"
skip-magic-trailing-comma = false
[tool.ruff.lint]
fixable = ["ALL"]
ignore = [
"ANN401", # use of Any type
"BLE001", # blind Exception usage
"COM812", # missing trailing comma
"CPY", # flake8-copyright
"FBT", # boolean arguments
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR0917", # too many positional arguments
"PLR6301", # method could be static
"RUF029", # async methods that don't await
"S104", # binding to all interfaces
"S110", # passed exceptions
"TRY301", # raise inside try block
]
select = ["ALL"]
unfixable = [
"F841", # local variable assigned but never used
"RUF100", # unused noqa comments
"T201", # don't strip print statement
]
[tool.ruff.lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"ANN202", # missing return type annotation for private function
"ANN401", # use of Any type
"PLR2004", # magic value used in comparison
"S101", # use of assert detected
"S106", # possible hardcoded password
"SLF001", # private member accessed
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"--strict-markers",
"--strict-config",
"--cov=openapi_mcp_server",
"--cov-report=html",
"--cov-report=term-missing",
"--cov-fail-under=60",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"e2e: End-to-end tests",
"slow: Slow running tests",
]