-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (112 loc) · 3.84 KB
/
pyproject.toml
File metadata and controls
132 lines (112 loc) · 3.84 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aws-durable-execution-sdk-python-testing"
dynamic = ["version"]
description = 'AWS Durable Execution Testing 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",
"aws_durable_execution_sdk_python>=1.0.0",
]
[project.urls]
Documentation = "https://github.com/aws/aws-durable-execution-sdk-python-testing#readme"
Issues = "https://github.com/aws/aws-durable-execution-sdk-python-testing/issues"
Source = "https://github.com/aws/aws-durable-execution-sdk-python-testing"
[project.scripts]
dex-local-runner = "aws_durable_execution_sdk_python_testing.cli:main"
[tool.hatch.build.targets.sdist]
packages = ["src/aws_durable_execution_sdk_python_testing"]
[tool.hatch.build.targets.wheel]
packages = ["src/aws_durable_execution_sdk_python_testing"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
path = "src/aws_durable_execution_sdk_python_testing/__about__.py"
# [tool.hatch.envs.default]
# dependencies=["pytest"]
# [tool.hatch.envs.default.scripts]
# test="pytest"
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pytest",
"pytest-cov",
"ruff",
"aws_durable_execution_sdk_python>=1.0.0",
]
[tool.hatch.envs.test.scripts]
test = "pytest tests/ -v"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_execution_sdk_python_testing --cov-fail-under=95"
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0", "pytest"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/aws_durable_execution_sdk_python_testing tests}"
[tool.coverage.run]
source_pkgs = ["aws_durable_execution_sdk_python_testing"]
branch = true
parallel = true
omit = ["src/aws_durable_execution_sdk_python_testing/__about__.py", "tests/*"]
[tool.coverage.paths]
aws_durable_execution_sdk_python_testing = [
"src/aws_durable_execution_sdk_python_testing",
"*/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing",
]
tests = ["tests", "*/aws-durable-execution-sdk-python-testing/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
preview = false
select = ["TID252"] # Enforce absolute imports (ban relative imports)
[tool.ruff.lint.isort]
known-first-party = ["aws_durable_execution_sdk_python_testing"]
force-single-line = false
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ARG001",
"ARG002",
"ARG005",
"S101",
"PLR2004",
"SIM117",
"TRY301",
]
"src/aws_durable_execution_sdk_python_testing/invoker.py" = [
"A002", # Argument `input` is shadowing a Python builtin
]
[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"