-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (79 loc) · 2.6 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (79 loc) · 2.6 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
[project]
name = "cominty-sdk"
version = "0.4.0"
description = "Official async Python client for the Cominty managed agent chat API"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Cominty" }]
keywords = ["cominty", "sdk", "agent", "chat"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27",
"pydantic>=2",
"pydantic-settings>=2",
"typing-extensions>=4.6",
# Lets Pydantic evaluate `X | Y` unions and `list[str]` subscripts in model
# field annotations on Python < 3.10, where `|` isn't valid at runtime.
# Pydantic auto-detects and uses it. See AGENTS.md §1.
"eval-type-backport>=0.2; python_version < '3.10'",
]
[project.urls]
Homepage = "https://github.com/cominty/python-sdk"
Repository = "https://github.com/cominty/python-sdk"
Issues = "https://github.com/cominty/python-sdk/issues"
Changelog = "https://github.com/cominty/python-sdk/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"pyright>=1.1",
"pytest>=8",
"pytest-asyncio>=0.24",
"respx>=0.21",
"ruff>=0.6",
"jupyter>=1.0",
"nbformat>=5",
"invoke>=2.2",
"twine>=5",
"rich>=13", # examples/ pretty terminal output (not a runtime dependency)
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/cominty_sdk"]
[tool.hatch.build.targets.sdist]
only-include = ["src/cominty_sdk", "README.md", "pyproject.toml"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
markers = [
"integration: opt-in tests requiring COMINTY_API_KEY",
]
[tool.ruff]
target-version = "py39"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "ANN"]
[tool.ruff.lint.per-file-ignores]
# Unshipped dev entrypoints (excluded from the sdist): manual endpoint-poking
# scripts and the invoke task runner. Real lint (unused imports, bugs) still
# applies, but full type annotations are needless ceremony here — invoke tasks
# idiomatically take an unannotated Context.
"tasks.py" = ["ANN"]
[tool.pyright]
pythonVersion = "3.9"
typeCheckingMode = "strict"
include = ["src/cominty_sdk"]