-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (70 loc) · 1.87 KB
/
pyproject.toml
File metadata and controls
77 lines (70 loc) · 1.87 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
[project]
name = "s2-sdk"
version = "0.1.3"
description = "Python SDK for s2.dev"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
dependencies = [
"h2>=4.1.0",
"protobuf>=5.29.0",
"zstandard>=0.23.0",
]
[dependency-groups]
dev = [
"grpcio-tools>=1.69.0",
"mypy>=1.14.1",
"poethepoet>=0.36.0",
"ruff>=0.9.1",
"types-protobuf>=5.29.1.20241207",
]
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-timeout>=2.3.0",
]
docs = [
"enum-tools[sphinx]>=0.12.0",
"furo>=2024.8.6",
"myst-parser>=4.0.0",
"sphinx==8.1.3",
"sphinx-autodoc-typehints>=3.0.0",
"sphinx-autobuild>=2024.10.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/s2_sdk"]
[tool.mypy]
files = ["src/s2_sdk/", "tests/"]
exclude = ["src/s2_sdk/_generated/"]
check_untyped_defs = true
[tool.ruff]
exclude = [
".git",
".github",
".mypy_cache",
".ruff_cache",
"__pycache__",
".venv",
"dist",
]
[tool.ruff.lint]
extend-select = ["I"]
[tool.poe.tasks]
lint = "uv run ruff check"
lint-fix = "uv run ruff check --fix"
format = "uv run ruff format"
format-check = "uv run ruff format --check"
type-check = "uv run mypy"
cq-check = ["lint", "format-check", "type-check"]
cq-fix = ["lint-fix", "format", "type-check"]
docs-check = "uv run --group docs sphinx-build -W -b html docs/source docs/build/html"
docs-clean = "rm -rf docs/build"
docs-live.sequence = ["docs-clean", "docs-check", {cmd = "uv run --group docs sphinx-autobuild docs/source docs/build/html --watch src/s2_sdk"}]
e2e-tests = "uv run pytest tests/ -v -s -m 'account or basin or stream'"
e2e-account-tests = "uv run pytest tests/ -v -s -m account"
e2e-basin-tests = "uv run pytest tests/ -v -s -m basin"
e2e-stream-tests = "uv run pytest tests/ -v -s -m stream"