-
-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (96 loc) · 3.45 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (96 loc) · 3.45 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mangum"
version = "0.22.0"
authors = [
{ name = "Jordan Eremieff", email = "jordan@eremieff.com" },
{ name = "Marcelo Trylesinski", email = "marcelotryle@gmail.com" },
]
description = "AWS Lambda support for ASGI applications"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3.15",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = ["typing_extensions"]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"coverage",
"ruff",
"starlette>=1.0",
"quart>=0.20.0",
"hypercorn>=0.15.0",
"mypy",
"brotli",
"brotli-asgi>=1.6.0",
"mkautodoc",
"mkdocs>=1.6.0; python_version >= '3.12'",
"mkdocs-material; python_version >= '3.12'",
"testcontainers[localstack]>=4.15.0",
"boto3>=1.43.78",
"types-boto3>=1.43.78",
"httpx2>=2.12.0",
]
localstack = []
[project.urls]
Homepage = "https://github.com/Kludex/mangum"
Documentation = "https://mangum.fastapiexpert.com"
Changelog = "https://github.com/Kludex/mangum/blob/main/CHANGELOG.md"
Funding = "https://github.com/sponsors/Kludex"
Source = "https://github.com/Kludex/mangum"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # https://docs.astral.sh/ruff/rules/#error-e
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"RUF100", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
ignore = ["UP031"] # https://docs.astral.sh/ruff/rules/printf-string-formatting/
[tool.mypy]
strict = true
[tool.pytest.ini_options]
addopts = "-rXs --strict-config --strict-markers"
xfail_strict = true
filterwarnings = [
# Turn warnings that aren't filtered into exceptions
"error",
# testcontainers calls its own deprecated wait_for_logs API during container startup
"ignore: The wait_for_logs function with string or callable predicates is deprecated.*:DeprecationWarning",
"ignore: There is no current event loop:DeprecationWarning",
"ignore: 'pkgutil.get_loader' is deprecated.*:DeprecationWarning",
"ignore: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead:DeprecationWarning",
"ignore: Attribute s is deprecated and will be removed in Python 3.14; use value instead:DeprecationWarning",
"ignore: Constant.__init__ got an unexpected keyword argument 's'. Support for arbitrary keyword arguments is deprecated and will be removed in Python 3.15.:DeprecationWarning",
"ignore: Constant.__init__ missing 1 required positional argument.*:DeprecationWarning",
]
[tool.coverage.run]
source_pkgs = ["mangum", "tests"]
omit = ["tests/echo_lambda/*"]
[tool.coverage.report]
fail_under = 100
skip_covered = true
show_missing = true
exclude_lines = [
"pragma: no cover",
"pragma: nocover",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"@typing.overload",
"raise NotImplementedError",
]