-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (139 loc) · 3.36 KB
/
pyproject.toml
File metadata and controls
155 lines (139 loc) · 3.36 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[project]
name = "cloudevents"
dynamic = ["version"]
description = "CloudEvents Python SDK"
authors = [
{ name = "The Cloud Events Contributors", email = "cncfcloudevents@gmail.com" }
]
readme = "README.md"
requires-python = ">= 3.10"
license = "Apache-2.0"
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
keywords = [
"CloudEvents",
"Eventing",
"Serverless",
]
dependencies = [
"deprecation>=2.0,<3.0",
"python-dateutil>=2.8.2",
]
[project.urls]
"Source code" = "https://github.com/cloudevents/sdk-python"
"Documentation" = "https://cloudevents.io"
"Home page" = "https://cloudevents.io"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"ruff>=0.15.7",
"pytest>=9.0.2",
"mypy>=1.19.1",
"isort>=8.0.1",
"flake8>=7.3.0",
"pep8-naming>=0.15.1",
"flake8-print>=5.0.0",
"pre-commit>=4.5.1",
"pytest-cov>=7.1.0",
"types-python-dateutil>=2.9.0.20260305",
"sanic>=25.12.0",
"sanic-testing>=24.6.0",
"pydantic>=2.12.5",
]
[tool.uv.pip]
universal = true
generate-hashes = true
[tool.hatch.version]
path = "src/cloudevents/__init__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel.force-include]
"CHANGELOG.md" = "CHANGELOG.md"
"MAINTAINERS.md" = "MAINTAINERS.md"
"README.md" = "README.md"
"MIGRATION.md" = "MIGRATION.md"
[tool.hatch.build.targets.sdist]
packages = ["src/cloudevents"]
[tool.hatch.build.targets.sdist.force-include]
"CHANGELOG.md" = "CHANGELOG.md"
"MAINTAINERS.md" = "MAINTAINERS.md"
"MIGRATION.md" = "MIGRATION.md"
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"site-packages",
"venv",
]
[tool.ruff.lint]
ignore = ["E731"]
extend-ignore = ["E203"]
select = [
"I", # isort - import sorting
"F401", # unused imports
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
scripts_are_modules = true
pretty = true
show_error_context = true
follow_imports_for_stubs = true
warn_redundant_casts = true
warn_unused_ignores = true
# subset of mypy --strict
# https://mypy.readthedocs.io/en/stable/config_file.html
check_untyped_defs = true
disallow_incomplete_defs = true
warn_return_any = true
strict_equality = true
disallow_untyped_defs = true
exclude = [
"src/cloudevents/v1",
]