-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (76 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (76 loc) · 2.62 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "otari"
version = "0.2.0"
description = "Python client for the otari gateway"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11"
authors = [{ name = "Mozilla AI", email = "ai-engineering@mozilla.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
# Streaming shim (raw SSE over httpx); the generated core cannot stream.
"httpx>=0.25.0",
# Runtime deps of the OpenAPI-generated core (otari._client).
"urllib3>=2.1.0",
"python-dateutil>=2.8.2",
"pydantic>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/mozilla-ai/otari-sdk-python"
Documentation = "https://mozilla-ai.github.io/otari/"
Repository = "https://github.com/mozilla-ai/otari-sdk-python"
Issues = "https://github.com/mozilla-ai/otari-sdk-python/issues"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"respx>=0.21",
"ruff>=0.8",
"mypy>=1.13",
]
[tool.hatch.build.targets.wheel]
packages = ["src/otari"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: tests that require a running gateway (skipped if none is available)",
]
[tool.ruff]
target-version = "py311"
line-length = 120
# Generated core client (OpenAPI Generator output) is not hand-linted.
extend-exclude = ["src/otari/_client"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "S", "B", "A", "C4", "DTZ", "T10", "ISC", "ICN", "PIE", "PT", "RSE", "RET", "SIM", "TID", "TCH", "ARG", "PLC", "PLE", "PLW", "TRY", "FLY", "PERF", "RUF"]
ignore = ["S101", "TRY003", "PLW0603"]
[tool.ruff.lint.per-file-ignores]
# Integration tests spawn the gateway subprocess and poll it over HTTP; the
# subprocess/URL/temp-file audit rules don't apply to that test harness.
"tests/integration/*" = ["S603", "S310", "SIM115", "SIM117", "PLC0415", "TC003"]
[tool.ruff.lint.isort]
known-first-party = ["otari"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
# Generated core client (OpenAPI Generator output) is not type-checked here.
exclude = ["src/otari/_client/"]
[[tool.mypy.overrides]]
module = ["otari._client.*"]
ignore_errors = true
ignore_missing_imports = true