-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (116 loc) · 4.02 KB
/
pyproject.toml
File metadata and controls
134 lines (116 loc) · 4.02 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
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
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aws-durable-execution-sdk-python"
dynamic = ["version"]
description = 'AWS Durable Execution SDK for Python'
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
keywords = []
authors = [{ name = "AWS durable-execution-dev", email = "durable-execution-dev@amazon.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["boto3>=1.42.1"]
[project.urls]
Documentation = "https://github.com/aws/aws-durable-execution-sdk-python#readme"
Issues = "https://github.com/aws/aws-durable-execution-sdk-python/issues"
Source = "https://github.com/aws/aws-durable-execution-sdk-python"
[tool.hatch.build.targets.wheel]
packages = ["src/aws_durable_execution_sdk_python"]
[tool.hatch.version]
path = "src/aws_durable_execution_sdk_python/__about__.py"
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pytest",
"pytest-cov",
"aws-durable-execution-sdk-python-testing>=1.0.0",
]
[tool.hatch.envs.test.scripts]
examples = "pytest --runner-mode=local -m example examples/test/ -v"
examples-integration = "pytest --runner-mode=cloud -m example examples/test/ -v {args}"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_execution_sdk_python --cov-fail-under=98"
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0", "pytest", "boto3-stubs[lambda]"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/aws_durable_execution_sdk_python tests}"
[tool.hatch.envs.examples]
dependencies = [
"aws-durable-execution-sdk-python-testing>=1.0.0",
]
[tool.hatch.envs.examples.scripts]
cli = "python examples/cli.py {args}"
bootstrap = "python examples/cli.py bootstrap"
generate-sam-template = "python examples/scripts/generate_sam_template.py"
build = "python examples/cli.py build"
deploy = "python examples/cli.py deploy {args}"
invoke = "python examples/cli.py invoke {args}"
get = "python examples/cli.py get {args}"
history = "python examples/cli.py history {args}"
policy = "python examples/cli.py policy {args}"
list = "python examples/cli.py list"
clean = "rm -rf examples/build examples/.aws-sam examples/*.zip"
[tool.coverage.run]
source_pkgs = ["aws_durable_execution_sdk_python"]
branch = true
parallel = true
omit = ["src/aws_durable_execution_sdk_python/__about__.py"]
[tool.coverage.paths]
aws_durable_execution_sdk_python = [
"src/aws_durable_execution_sdk_python",
"*/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python",
]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
preview = true
select = ["TID252"] # Enforce absolute imports (ban relative imports)
[tool.ruff.lint.isort]
known-first-party = ["aws_durable_execution_sdk_python"]
force-single-line = false
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ARG001",
"ARG002",
"ARG005",
"S101",
"PLR2004",
"PLR6301",
"SIM117",
"TRY301",
]
"examples/test/**" = [
"ARG001",
"ARG002",
"ARG005",
"S101",
"PLR2004",
"SIM117",
"TRY301",
]
[tool.pytest.ini_options]
# Declare custom markers to avoid warnings with --strict-markers
markers = [
# Used for test selection with -m example
"example: marks tests as example tests (deselect with '-m \"not example\"')",
# Used for configuration - passes handler and lambda_function_name to durable_runner fixture
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
]
# Default test discovery paths
testpaths = ["tests"]
# Default options for all test runs
addopts = "-v --strict-markers"