Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (48 loc) · 1.36 KB
/
Copy pathpyproject.toml
File metadata and controls
56 lines (48 loc) · 1.36 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
[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"
[project]
name = "python-api-with-claude"
version = "0.1.0"
description = "A FastAPI service that answers questions using Claude, instrumented with OpenTelemetry."
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
dependencies = [
"anthropic>=1.13.0",
"fastapi>=0.143.0",
"uvicorn[standard]>=0.54.0",
"pydantic>=2.14.0",
"pydantic-settings>=2.15.0",
"opentelemetry-api>=1.45.1",
"opentelemetry-sdk>=1.45.1",
"opentelemetry-exporter-otlp-proto-grpc>=1.45.1",
"opentelemetry-exporter-otlp-proto-http>=1.45.1",
"opentelemetry-instrumentation-fastapi>=0.66b1",
"opentelemetry-instrumentation-logging>=0.66b1",
]
[project.optional-dependencies]
dev = [
"pytest>=9.1",
"pytest-asyncio>=1.4",
"pytest-cov>=7.1",
"httpx>=0.28",
"ruff>=0.17",
]
[tool.setuptools.packages.find]
include = ["app*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-ra --strict-markers --cov=app --cov-report=term-missing"
[tool.coverage.run]
branch = true
source = ["app"]
[tool.coverage.report]
exclude_also = ['if __name__ == "__main__":']
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "ASYNC"]