pyproject.tomlā¢3.85 kB
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "comfy-mcp"
version = "0.1.0"
description = "DSL-first workflow management for ComfyUI via Model Context Protocol"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Christian Byrne"}
]
keywords = ["comfyui", "mcp", "dsl", "workflow", "ai", "diffusion"]
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 :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = [
"fastmcp>=2.0.0",
"httpx>=0.25.0",
"websockets>=12.0",
"lark>=1.1.0",
"pydantic>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.6.0",
"pre-commit>=3.0.0",
]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"sphinx-autodoc-typehints>=1.24.0",
"myst-parser>=2.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.25.0",
]
[project.scripts]
comfy-mcp = "comfy_mcp.mcp.server:main"
[project.urls]
Homepage = "https://github.com/christian-byrne/comfy-mcp"
Repository = "https://github.com/christian-byrne/comfy-mcp.git"
Issues = "https://github.com/christian-byrne/comfy-mcp/issues"
Documentation = "https://comfy-mcp.readthedocs.io"
[tool.setuptools.packages.find]
where = ["."]
include = ["comfy_mcp*"]
[tool.setuptools.package-data]
"comfy_mcp.dsl" = ["*.lark"]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
# Ruff configuration
[tool.ruff]
target-version = "py310"
line-length = 88
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.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*" = ["D", "S101"]
# MyPy configuration
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"lark.*",
"fastmcp.*",
"websockets.*",
]
ignore_missing_imports = true
# Pytest configuration
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests", "comfy_mcp"]
pythonpath = ["."]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
# Coverage configuration
[tool.coverage.run]
source = ["comfy_mcp"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/conftest.py",
]
[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__.:",
]