[project]
name = "levelang-mcp"
version = "0.1.0"
description = "MCP server for the Levelang translation API"
authors = [{ name = "Alex Beverage" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"mcp>=1.26.0,<2.0.0",
"httpx>=0.28.0",
"python-dotenv>=1.0.0",
]
[project.urls]
Repository = "https://github.com/beverage/levelang-mcp"
Homepage = "https://levelang.app"
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.25.0",
"respx>=0.22.0",
"ruff>=0.6.0",
"mypy>=1.10.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/levelang_mcp"]
# Ruff configuration - handles linting, formatting, and import sorting
[tool.ruff]
target-version = "py312"
line-length = 88
exclude = [
".git",
"__pycache__",
".pytest_cache",
".ruff_cache",
"build",
"dist",
".venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"T20", # flake8-print
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long, handled by formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F811"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[tool.ruff.lint.isort]
known-first-party = ["levelang_mcp"]
force-single-line = false
lines-between-types = 1
lines-after-imports = 2
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
implicit_reexport = false
strict_equality = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["tests"]