-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
150 lines (140 loc) · 3.13 KB
/
pyproject.toml
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
[tool.poetry]
name = "safe-init"
version = "1.3.0"
description = "Safe Init is a Python library that enhances AWS Lambda functions with advanced error handling, logging, monitoring, and resilience features, providing comprehensive observability and reliability for serverless applications."
license = "MIT"
authors = ["Maciej Wilczyński <maciej@lupine.software>"]
repository = "https://github.com/kalepa/safe-init"
readme = "README.md"
packages = [{ include = "safe_init" }]
include = ["safe_init/py.typed"]
documentation = "https://safe-init.readthedocs.io/en/latest/"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "~3.11"
structlog = "^24.1.0"
sentry-sdk = "<2.0.0"
requests = "^2.31.0"
awslambdaric = ">=2.0.10"
boto3 = ">=1.20.0"
boto3-type-annotations = ">=0.3.1"
datadog-lambda = "*"
ddtrace = "*"
redis = ">=4.0.0,<6"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
mypy = "^1.4.1"
types-ujson = ">=5.8.0.0"
types-colorama = ">=0.4.15.11"
types-urllib3 = ">=1.26.25.13,<2.0.0"
types-requests = ">=2.31.0.1"
boto3-type-annotations-with-docs = ">=0.3.1"
fastapi = { version = "^0.95.0" }
starlette = { version = "^0.27.0" }
coverage = "^7.4.4"
pytest-cov = "^4.1.0"
mkdocs = "^1.5.3"
mkdocstrings = { extras = ["python"], version = "^0.24.1" }
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.1"
mkdocs-section-index = "^0.3.8"
pre-commit = "^3.7.0"
httpx = "^0.27.0"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
preview = true
target-version = ['py311']
[tool.isort]
profile = "black"
skip = ["__init__.py"]
[tool.ruff]
line-length = 120
target-version = "py311"
extend-exclude = ["test/", "tests/", "scripts/", "bin/", "**/__init__.py"]
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ANN",
"ARG",
"BLE",
"COM",
"DJ",
"DTZ",
"EM",
"ERA",
"EXE",
"FBT",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]
extend-ignore = [
"ANN101",
"BLE001",
"ANN003",
"PLR0912",
"PLW0602",
"PLW0603",
"C901",
"PLR0913",
"PTH110",
"PTH123",
"S108",
]
[tool.mypy]
python_version = "3.11"
strict = true
show_error_codes = true
disallow_untyped_calls = false
disallow_any_generics = false
warn_return_any = false
ignore_missing_imports = true
disable_error_code = "abstract"
exclude = ['^test/', '^scripts/', '^bin/', '.*__init__.py']