-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (70 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (70 loc) · 2 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
[tool.poetry]
name = "limits"
version = "0.2.0"
description = "Vino Bank demo limits management module"
authors = ["Li Lin <guru.lin@gmail.com>"]
license = "MIT"
# this section contains all dependencies required to run unit and integration tests
# not just dependencies requied for lambda runtime
#
# notes on versions of some dependencies
#
# the python and boto3 versions are deteremined by AWs Lambda runtime
# https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
#
# version of pydantic is based on what's used by aws-lambda-powertools
# https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/pyproject.toml
[tool.poetry.dependencies]
python = "^3.9"
boto3 = "1.20.32"
aws-lambda-powertools = "^1.28.0"
aws-cdk-lib = "^2.38.1"
constructs = "10.*"
pytest = "^6.2.5"
pytest-mock = "^3.5.1"
pytest-cov = "^3.0.0"
"aws-solutions-constructs.aws-apigateway-lambda" = "^2.18.0"
"aws-solutions-constructs.aws-lambda-dynamodb" = "^2.18.0"
"aws-solutions-constructs.aws-eventbridge-lambda" = "^2.18.0"
ulid-py = "^1.1.0"
pydantic = "^1.8.2"
requests = "^2.27.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dev-dependencies]
# formatting, linting
black = "^22.1.0"
flake8 = "^4.0.1"
flake8-black = "^0.2.3"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.7.0"
flake8-debugger = "^4.0.0"
flake8-fixme = "^1.1.1"
flake8-isort = "^4.1.1"
flake8-variables-names = "^0.0.4"
isort = "^5.10.1"
pre-commit = "^2.19.0"
mypy = "^0.961"
types-requests = "^2.27.8"
types-setuptools = "^57.4.8"
types-toml = "^0.10.3"
boto3-stubs = "1.20.32"
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["runtime", "infrastructure", "tests"]
[tool.black]
line-length = 120
[tool.pytest.ini_options]
minversion = "6.0"
# addopts = "--cov=limits --cov-report html --cov-report xml"
testpaths = [
"tests/unit",
"tests/integration",
]
[tool.coverage.run]
source = ["limits"]
omit = ["tests/*", "infrastructure/*"]
[tool.coverage.html]
directory = "test_report"