generated from ran-isenberg/aws-lambda-handler-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpyproject.toml
135 lines (122 loc) · 2.92 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
[build-system]
requires = ["poetry>=2.0.1"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "serverless-python-demo"
version = "1.0.0"
description = "a sample serverless service written in Python"
authors = ["Ran Isenberg, Heitor Lessa"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.13",
]
repository = "https://github.com/"
readme = "README.md"
keywords = ["serverless"]
license = "MIT-0"
[tool.poetry.dependencies]
python = "^3.13.0"
pydantic = { version = "^2.0.3" }
email-validator = { version = "*" }
aws-lambda-powertools = { extras = ["tracer"], version = "^2.20.0" }
mypy-boto3-dynamodb = "*"
cachetools = "*"
boto3 = "^1.26.125"
aws-lambda-env-modeler = { version = "^1.0.5" }
[tool.poetry.group.dev.dependencies]
# CDK
infrastructure = { path = "infrastructure", develop = true }
aws-cdk-lib = ">=2.100.0"
constructs = ">=10.0.0"
cdk-nag = ">2.0.0"
"aws-cdk.aws-lambda-python-alpha" = "^2.100.0-alpha.0"
cdk-monitoring-constructs = "*"
# DEV
pytest = "*"
pytest-mock = "*"
pycodestyle = "*"
pytest-cov = "*"
pytest-html = "*"
python-dateutil = "*"
python-dotenv = "*"
GitPython = "*"
radon = "*"
xenon = "*"
pre-commit = "*"
mkdocs-material = "*"
mkdocs-git-revision-date-plugin = "*"
mkdocs-glightbox = "*"
types-cachetools = "*"
poetry-plugin-export = "*"
mkdocs-render-swagger-plugin = "*"
mypy = "*"
types-requests = "*"
toml = "*"
mypy-boto3-events = "^1.28.46"
pytest-socket = "^0.6.0"
mkdocstrings = "^0.23.0"
mkdocstrings-python = "^1.7.1"
ruff = "*"
stamina = "^23.2.0"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.9"
[tool.pytest.ini_options]
testpaths = "tests"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"cdk.out",
".vscode",
".pytest_cache",
".build",
".mypy_cache",
".github",
]
# Same as Black.
line-length = 150
indent-width = 4
# Assume Python 3.13
target-version = "py313"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = ["E203", "E266", "E501", "W191"]
[tool.ruff.format]
quote-style = "single"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint.isort]
known-third-party = ["pydantic", "aws_lambda_powertools"]