-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (73 loc) · 2.04 KB
/
pyproject.toml
File metadata and controls
83 lines (73 loc) · 2.04 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lago-agent-sdk"
version = "0.1.0"
description = "Instrument LLM clients and emit usage events to Lago."
readme = "README.md"
requires-python = ">=3.10"
keywords = ["lago", "billing", "llm", "metering", "bedrock", "mistral", "anthropic", "openai"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"requests>=2.31",
]
[project.optional-dependencies]
bedrock = ["boto3>=1.34"]
mistral = ["mistralai>=2.0"]
dev = [
"pytest>=7",
"pytest-asyncio>=0.23",
"pytest-cov>=5",
"boto3>=1.34",
"mistralai>=2.0",
"hypothesis>=6",
"ruff>=0.6",
"mypy>=1.10",
"types-requests>=2.31",
]
[project.urls]
Homepage = "https://www.getlago.com"
Repository = "https://github.com/getlago/lago-agent-sdk-python"
Issues = "https://github.com/getlago/lago-agent-sdk-python/issues"
Changelog = "https://github.com/getlago/lago-agent-sdk-python/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff]
line-length = 110
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"ASYNC",
]
ignore = [
"E501", # line too long — handled by formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["B", "F841"] # tests can be looser
[tool.mypy]
python_version = "3.10"
strict = true
files = ["src/lago_agent_sdk"]
[[tool.mypy.overrides]]
module = ["boto3.*", "botocore.*", "mistralai.*"]
ignore_missing_imports = true