-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (58 loc) · 1.61 KB
/
pyproject.toml
File metadata and controls
67 lines (58 loc) · 1.61 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "primer"
version = "0.2.0"
description = "Aggregate Claude Code usage insights across an engineering organization"
requires-python = ">=3.12"
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",
]
[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"]
"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.force-include]
"alembic" = "primer/_alembic"
"alembic.ini" = "primer/_alembic.ini"