Spaces:
Sleeping
Sleeping
File size: 1,309 Bytes
235461a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | [build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "img_edit_api"
version = "0.1.0"
description = "FastAPI backend with LangChain logic for HF Spaces"
requires-python = ">=3.10"
# Core dependencies
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"google-genai",
"pillow",
"python-dotenv",
"replicate",
"langchain-core",
"langgraph>0.2.27",
"langchain[google-genai]",
"langgraph-checkpoint-postgres>=0.2.0",
"psycopg[binary]>=3.1.18",
"boto3",
"requests",
]
[project.optional-dependencies]
dev = [
"pytest>=8.2.0",
"ruff>=0.5.0",
"black>=24.4.0",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
"types-requests",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["llm*", "server*"]
[tool.black]
line-length = 150
target-version = ["py310"]
[tool.ruff]
line-length = 150
target-version = "py310"
fix = true
unsafe-fixes = true
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.format]
# Optional — style preferences:
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = true
[tool.mypy]
python_version = "3.10"
strict = true
[tool.pytest.ini_options]
addopts = "-ra -q"
testpaths = ["tests"]
|