pyproject.tomlโข3.66 kB
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "supabase-mcp-server"
version = "1.0.0"
description = "A Model Context Protocol server for Supabase database operations"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Supabase MCP Server Project", email = "contact@example.com"}
]
maintainers = [
{name = "Supabase MCP Server Project", email = "contact@example.com"}
]
keywords = ["mcp", "supabase", "database", "ai", "llm", "model-context-protocol"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.11"
dependencies = [
"mcp>=1.0.0",
"supabase>=2.0.0",
"pydantic>=2.0.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.10.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"pre-commit>=3.0.0",
"types-requests>=2.31.0",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.10.0",
"pytest-cov>=4.0.0",
]
lint = [
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"flake8>=6.0.0",
]
[project.urls]
Homepage = "https://github.com/your-username/supabase-mcp-server"
Documentation = "https://github.com/your-username/supabase-mcp-server#readme"
Repository = "https://github.com/your-username/supabase-mcp-server.git"
Issues = "https://github.com/your-username/supabase-mcp-server/issues"
[project.scripts]
supabase-mcp-server = "src.server:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]
[tool.setuptools.package-data]
"*" = ["*.md", "*.txt", "*.yaml", "*.yml"]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
# isort configuration
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["src"]
# 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
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "supabase.*"
ignore_missing_imports = true
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html:htmlcov",
"--cov-fail-under=95"
]
asyncio_mode = "auto"
# Coverage configuration
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/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",
]