[build-system]
requires = ["setuptools>=65.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "azure-pricing-mcp"
version = "2.3.0"
description = "A Model Context Protocol server for querying Azure retail pricing information"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Nadav Ben Haim"},
{name = "Michael Liav"}
]
maintainers = [
{name = "Nadav Ben Haim"}
]
keywords = ["azure", "pricing", "mcp", "model-context-protocol", "cloud-costs", "cost-estimation"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"mcp>=1.0.0",
"requests>=2.31.0",
"aiohttp>=3.9.0",
"pydantic>=2.0.0",
"uvicorn>=0.27.0",
"starlette>=0.36.0",
"sse-starlette>=1.8.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.12.0",
"black>=23.0.0",
"mypy>=1.0.0",
"ruff>=0.1.0",
"pre-commit>=3.5.0",
"bandit>=1.7.0",
"types-requests>=2.31.0",
]
[project.urls]
Homepage = "https://github.com/msftnadavbh/AzurePricingMCP"
Repository = "https://github.com/msftnadavbh/AzurePricingMCP"
Issues = "https://github.com/msftnadavbh/AzurePricingMCP/issues"
Documentation = "https://github.com/msftnadavbh/AzurePricingMCP#readme"
[project.scripts]
azure-pricing-mcp = "azure_pricing_mcp.server:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["azure_pricing_mcp*"]
exclude = ["tests*"]
[tool.black]
line-length = 120
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 120
target-version = "py310"
[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 = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
[[tool.mypy.overrides]]
module = "mcp.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "aiohttp.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"
markers = [
"asyncio: mark test as async test",
"integration: mark test as integration test (requires network)",
"slow: mark test as slow running",
]
norecursedirs = [".git", ".venv", "build", "dist", "*.egg"]
[tool.bandit]
exclude_dirs = ["tests", ".venv", "build", "dist"]
skips = ["B101"] # Skip assert_used check for tests