@@ -25,6 +25,7 @@ addopts = "--import-mode=importlib"
2525testpaths = [
2626 " packages/aws-durable-execution-sdk-python/tests" ,
2727 " packages/aws-durable-execution-sdk-python-otel/tests" ,
28+ " packages/examples/test" ,
2829]
2930
3031
@@ -35,6 +36,81 @@ extra-dependencies = ["mypy>=1.0.0", "pytest", "boto3-stubs[lambda]"]
3536[tool .hatch .envs .types .scripts ]
3637check = " mypy --install-types --non-interactive {args}"
3738
39+ [tool .hatch .envs .dev-core ]
40+ workspace.members = [" packages/aws-durable-execution-sdk-python" ]
41+ dependencies = [
42+ " pytest" ,
43+ " pytest-cov" ,
44+ " coverage[toml]" ,
45+ " aws-durable-execution-sdk-python-testing" ,
46+ " mypy>=1.0.0" ,
47+ " boto3-stubs[lambda]" ,
48+ ]
49+
50+ [tool .hatch .envs .dev-core .scripts ]
51+ test = " pytest packages/aws-durable-execution-sdk-python/tests {args}"
52+ cov = " pytest --cov-report=term-missing --cov-config=packages/aws-durable-execution-sdk-python/pyproject.toml --cov=packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python --cov-fail-under=98 packages/aws-durable-execution-sdk-python/tests {args}"
53+ typecheck = " mypy --install-types --non-interactive packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python packages/aws-durable-execution-sdk-python/tests"
54+
55+ [tool .hatch .envs .dev-otel ]
56+ workspace.members = [
57+ " packages/aws-durable-execution-sdk-python" ,
58+ " packages/aws-durable-execution-sdk-python-otel" ,
59+ ]
60+ dependencies = [
61+ " pytest" ,
62+ " pytest-cov" ,
63+ " coverage[toml]" ,
64+ " opentelemetry-sdk>=1.20.0" ,
65+ " mypy>=1.0.0" ,
66+ ]
67+
68+ [tool .hatch .envs .dev-otel .scripts ]
69+ test = " pytest packages/aws-durable-execution-sdk-python-otel/tests {args}"
70+ cov = " pytest --cov-report=term-missing --cov-config=packages/aws-durable-execution-sdk-python-otel/pyproject.toml --cov=packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel packages/aws-durable-execution-sdk-python-otel/tests {args}"
71+ typecheck = " mypy --install-types --non-interactive packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel packages/aws-durable-execution-sdk-python-otel/tests"
72+
73+ [tool .hatch .envs .dev-examples ]
74+ workspace.members = [
75+ " packages/aws-durable-execution-sdk-python" ,
76+ " packages/examples" ,
77+ ]
78+ dependencies = [
79+ " pytest" ,
80+ " aws-durable-execution-sdk-python-testing" ,
81+ ]
82+
83+ [tool .hatch .envs .dev-examples .scripts ]
84+ test = " pytest packages/examples/test {args}"
85+
86+ [tool .hatch .envs .test-pypi-otel ]
87+ dependencies = [
88+ " aws-durable-execution-sdk-python" ,
89+ " opentelemetry-sdk>=1.20.0" ,
90+ " pytest" ,
91+ " pytest-cov" ,
92+ " coverage[toml]" ,
93+ ]
94+ pre-install-commands = [
95+ " pip install -e packages/aws-durable-execution-sdk-python-otel" ,
96+ ]
97+
98+ [tool .hatch .envs .test-pypi-otel .scripts ]
99+ test = " pytest packages/aws-durable-execution-sdk-python-otel/tests {args}"
100+
101+ [tool .hatch .envs .test-pypi-examples ]
102+ dependencies = [
103+ " aws-durable-execution-sdk-python" ,
104+ " aws-durable-execution-sdk-python-testing" ,
105+ " pytest" ,
106+ ]
107+ pre-install-commands = [
108+ " pip install -e packages/examples" ,
109+ ]
110+
111+ [tool .hatch .envs .test-pypi-examples .scripts ]
112+ test = " pytest packages/examples/test {args}"
113+
38114[tool .ruff ]
39115line-length = 88
40116target-version = " py311"
0 commit comments