-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (123 loc) · 3.5 KB
/
pyproject.toml
File metadata and controls
135 lines (123 loc) · 3.5 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "useprimer"
version = "0.2.0"
description = "Agent harness intelligence — measure what makes your AI coding tools effective"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
authors = [
{ name = "Charles C. Figueiredo", email = "ccf@ccf.io" },
]
maintainers = [
{ name = "Charles C. Figueiredo", email = "ccf@ccf.io" },
]
keywords = [
"agent-harness",
"claude-code",
"cursor",
"codex",
"gemini",
"ai-engineering",
"developer-tools",
"analytics",
"observability",
"harness-intelligence",
"workflow-intelligence",
"finops",
"devex",
"mcp",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"sqlalchemy[asyncio]>=2.0.0",
"alembic>=1.14.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"bcrypt>=4.0.0",
"httpx>=0.27.0",
"pyjwt[crypto]>=2.8.0",
"mcp>=1.0.0",
"psycopg2-binary>=2.9.0",
"aiosqlite>=0.20.0",
"slowapi>=0.1.9",
"python-dotenv>=1.0.0",
"click>=8.1.0",
"redis>=5.2.0",
"opentelemetry-api>=1.28.0",
"opentelemetry-sdk>=1.28.0",
"opentelemetry-exporter-otlp-proto-http>=1.28.0",
]
[project.urls]
Homepage = "https://useprimer.dev"
Documentation = "https://useprimer.dev/docs/"
Repository = "https://github.com/ccf/primer"
Issues = "https://github.com/ccf/primer/issues"
Changelog = "https://github.com/ccf/primer/releases"
"Live Demo" = "https://demo.useprimer.dev"
[project.scripts]
primer = "primer.cli.main:cli"
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-httpx>=0.34.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"bandit[toml]>=1.8.0",
"pre-commit>=4.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "W", "F", "I", "N", "UP", "B", "A", "S", "T20", "SIM", "TCH", "RUF"]
ignore = ["S101", "S104", "S106", "S607", "B008"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S106"]
"scripts/**/*.py" = ["T20", "S311", "S603"]
"src/primer/cli/**/*.py" = ["T20", "S603"]
"src/primer/hook/**/*.py" = ["S603"]
"alembic/**/*.py" = ["E501", "W291", "UP", "I001", "RUF"]
[tool.bandit]
exclude_dirs = ["tests", "alembic"]
skips = ["B101", "B104", "B105", "B404", "B603", "B607"]
[tool.hatch.build.targets.wheel]
# PyPI project name is "useprimer" (matches useprimer.dev) but the importable
# Python module is still `primer` — same pattern as PyYAML → `yaml`. Tell
# hatch to include src/primer/ in the wheel.
packages = ["src/primer"]
[tool.hatch.build.targets.wheel.force-include]
"alembic" = "primer/_alembic"
"alembic.ini" = "primer/_alembic.ini"
[tool.hatch.build.targets.sdist]
include = [
"src/primer",
"alembic",
"alembic.ini",
"README.md",
"LICENSE",
"pyproject.toml",
]