-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (110 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (110 loc) · 3.26 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "houndsight"
version = "0.1.2"
description = "The official Python SDK for Houndsight — observability and evals for AI agents."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Houndsight contributors" }]
keywords = ["observability", "tracing", "agents", "llm", "evals"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.27",
"typing_extensions>=4.7",
"pydantic>=2.0",
]
[project.optional-dependencies]
openai = ["openai>=1.0"]
anthropic = ["anthropic>=0.40"]
langchain = ["langchain-core>=0.3"]
gemini = ["google-generativeai>=0.7"]
crewai = ["crewai>=0.40"]
llama-index = ["llama-index-core>=0.10"]
all = [
"openai>=1.0",
"anthropic>=0.40",
"langchain-core>=0.3",
"google-generativeai>=0.7",
"crewai>=0.40",
"llama-index-core>=0.10",
]
dev = [
"pytest>=7",
"pytest-asyncio>=0.23",
"ruff>=0.5",
"mypy>=1.8",
"build>=1.0",
"twine>=5.0",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.5",
]
[project.urls]
Homepage = "https://houndsight.dev"
Documentation = "https://docs.houndsight.dev"
Source = "https://github.com/houndsight/houndsight-python"
Issues = "https://github.com/houndsight/houndsight-python/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/houndsight"]
[tool.hatch.build.targets.wheel.force-include]
"src/houndsight/pricing.json" = "houndsight/pricing.json"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
"/pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py39"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
# We deliberately use typing.{Optional,List,Dict} in source to stay
# compatible with Python 3.9 + pydantic v2 type resolution at runtime,
# so the relevant pyupgrade rules are disabled.
ignore = [
"E501", # line length handled by formatter
"UP006", # PEP 585 generics (list[int]) — runtime use on 3.9 differs
"UP007", # Optional[X] vs X | None — 3.9 runtime
"UP035", # deprecated typing imports — kept for 3.9 + pydantic
"UP037", # quoted annotations — kept for forward refs
"UP045", # Optional[X] vs X | None (newer rule)
"RUF022", # __all__ unsorted — we order it logically
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
disallow_any_generics = false
ignore_missing_imports = true
files = ["src/houndsight"]
[[tool.mypy.overrides]]
module = "houndsight.instrumentation.*"
ignore_errors = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--strict-markers"]
testpaths = ["tests"]
asyncio_mode = "auto"