-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
124 lines (114 loc) · 3.51 KB
/
pyproject.toml
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
123
124
[tool.poetry]
name = "hatchet-sdk"
version = "0.43.2"
description = ""
authors = ["Alexander Belanger <[email protected]>"]
readme = "README.md"
include = ["hatchet_sdk/py.typed"]
[tool.poetry.dependencies]
python = "^3.10"
grpcio = [
{ version = ">=1.64.1, !=1.68.*", markers = "python_version < '3.13'" },
{ version = ">=1.69.0", markers = "python_version >= '3.13'" }
]
grpcio-tools = [
{ version = ">=1.64.1, !=1.68.*", markers = "python_version < '3.13'" },
{ version = ">=1.69.0", markers = "python_version >= '3.13'" }
]
python-dotenv = "^1.0.0"
protobuf = "^5.29.1"
pyyaml = "^6.0.1"
loguru = "^0.7.2"
pydantic = "^2.6.3"
python-dateutil = "^2.9.0.post0"
urllib3 = ">=1.26.20"
aiostream = "^0.5.2"
nest-asyncio = "^1.6.0"
aiohttp = "^3.10.5"
aiohttp-retry = "^2.8.3"
tenacity = ">=8.4.1"
cel-python = "^0.1.5"
opentelemetry-api = "^1.28.0"
opentelemetry-sdk = "^1.28.0"
opentelemetry-instrumentation = ">=0.49b0"
opentelemetry-distro = ">=0.49b0"
opentelemetry-exporter-otlp = "^1.28.0"
opentelemetry-exporter-otlp-proto-http = "^1.28.0"
prometheus-client = "^0.21.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pytest-asyncio = "^0.23.8"
psutil = "^6.0.0"
[tool.poetry.group.lint.dependencies]
mypy = "^1.14.0"
types-protobuf = "^5.28.3.20241030"
black = "^24.10.0"
isort = "^5.13.2"
[tool.poetry.group.test.dependencies]
pytest-timeout = "^2.3.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
log_cli = true
[tool.isort]
profile = "black"
known_third_party = [
"grpcio",
"grpcio_tools",
"loguru",
"protobuf",
"pydantic",
"python_dotenv",
"python_dateutil",
"pyyaml",
"urllib3",
]
extend_skip = ["hatchet_sdk/contracts/"]
[tool.black]
extend_exclude = "hatchet_sdk/contracts/"
[tool.mypy]
strict = true
files = [
"hatchet_sdk/hatchet.py",
"hatchet_sdk/worker/worker.py",
"hatchet_sdk/context/context.py",
"hatchet_sdk/worker/runner/runner.py",
"hatchet_sdk/workflow.py",
"hatchet_sdk/utils/serialization.py",
"hatchet_sdk/utils/tracing.py",
"hatchet_sdk/utils/types.py",
"hatchet_sdk/utils/backoff.py",
"examples/**/*.py",
"hatchet_sdk/clients/rest/models/workflow_list.py",
"hatchet_sdk/clients/rest/models/workflow_run.py",
"hatchet_sdk/context/worker_context.py",
"hatchet_sdk/clients/dispatcher/dispatcher.py",
]
follow_imports = "silent"
disable_error_code = ["unused-coroutine"]
explicit_package_bases = true
[tool.poetry.scripts]
api = "examples.api.api:main"
async = "examples.async.worker:main"
fanout = "examples.fanout.worker:main"
cancellation = "examples.cancellation.worker:main"
concurrency_limit = "examples.concurrency_limit.worker:main"
concurrency_limit_rr = "examples.concurrency_limit_rr.worker:main"
dag = "examples.dag.worker:main"
delayed = "examples.delayed.worker:main"
events = "examples.events.worker:main"
logger = "examples.logger.worker:main"
manual_trigger = "examples.manual_trigger.worker:main"
on_failure = "examples.on_failure.worker:main"
programatic_replay = "examples.programatic_replay.worker:main"
dynamic_rate_limit = "examples.rate_limit.dynamic:main"
rate_limit = "examples.rate_limit.worker:main"
simple = "examples.simple.worker:main"
timeout = "examples.timeout.worker:main"
blocked = "examples.blocked_async.worker:main"
existing_loop = "examples.worker_existing_loop.worker:main"
bulk_fanout = "examples.bulk_fanout.worker:main"
retries_with_backoff = "examples.retries_with_backoff.worker:main"
pydantic = "examples.pydantic.worker:main"
v2_simple = "examples.v2.simple.worker:main"