This repository was archived by the owner on Mar 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (131 loc) · 3.84 KB
/
pyproject.toml
File metadata and controls
144 lines (131 loc) · 3.84 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "adcp-creative-agent"
version = "0.1.0"
description = "AdCP Creative Agent - stateless MCP server for creative formats"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastmcp>=2.11.0",
"google-genai>=1.0.0",
"pillow>=10.0.0",
"uvicorn>=0.23.0",
"httpx>=0.28.1",
"pydantic>=2.0.0",
"boto3>=1.35.0",
"markdown>=3.6",
"bleach>=6.3.0",
"adcp>=3.5.0",
]
[project.scripts]
adcp-creative-agent = "creative_agent.server:mcp.run"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/creative_agent"]
[tool.uv]
package = true
[tool.uv.sources]
adcp = { git = "https://github.com/adcontextprotocol/adcp-client-python", tag = "v3.5.0" }
[dependency-groups]
dev = [
"mypy>=1.18.2",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"ruff>=0.8.0",
# Type stubs
"boto3-stubs[s3]>=1.35.0",
"types-pillow>=10.0.0",
"types-markdown>=3.6",
"types-bleach>=6.3.0.20251029",
]
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = [
".eggs",
".git",
".mypy_cache",
".venv",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ANN", # flake8-annotations (type hints)
"ASYNC",# flake8-async
"S", # flake8-bandit (security)
"BLE", # flake8-blind-except
"A", # flake8-builtins
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # eradicate (commented code)
"PL", # pylint
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"ANN101", # missing-type-self (deprecated)
"ANN102", # missing-type-cls (deprecated)
"ANN401", # any-type (sometimes necessary)
"COM812", # trailing comma (conflicts with formatter)
"ISC001", # implicit str concat (conflicts with formatter)
"BLE001", # blind except (acceptable for tool error handling)
"S104", # hardcoded bind all interfaces (required for production deployment)
"A002", # argument shadows builtin (type parameter name is intentional)
"PLR0911", # too many return statements (acceptable for validation logic)
"PLR0912", # too many branches (acceptable for complex generation logic)
"PLR0913", # too many arguments (acceptable for MCP tool signatures)
"PLR0915", # too many statements (acceptable for generation logic)
"PLR2004", # magic value (acceptable for dimension parsing)
"PLC0415", # import outside top-level (acceptable for lazy imports)
"SIM108", # ternary operator (if-else is more readable)
"SIM102", # nested if (nested is more readable)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert used (normal in tests)
"ANN", # type annotations (less strict in tests)
"PLR2004", # magic values (ok in tests)
]
"scripts/*" = [
"PTH123", # open() is acceptable in scripts
"S603", # subprocess with list is safe
"ANN201", # type annotations less critical in scripts
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.coverage.run]
branch = true
source = ["src/creative_agent"]
omit = [
"tests/*",
"*/__pycache__/*",
"*/.venv/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false