forked from AdaCore/e3-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
93 lines (80 loc) · 1.84 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "e3-aws"
authors = [{name="AdaCore's IT Team"}]
dynamic = ["version"]
description = "E3 Cloud Formation Extensions"
dependencies = [
"boto3",
"botocore",
# Only require docker for linux as there is a known dependency issue
# with pywin32 on windows
"docker; platform_system=='Linux'",
"e3-core",
"pyyaml",
"troposphere"
]
[project.scripts]
e3-aws-assume-profile = "e3.aws:assume_profile_main"
e3-aws-assume-role = "e3.aws:assume_role_main"
[project.entry-points."e3.event.handler"]
s3-boto3 = "e3.aws.handler.s3:S3Handler"
[project.optional-dependencies]
test = [
"awscli",
"pytest",
"mock",
"requests_mock",
"httpretty",
"flask",
"moto[sts, dynamodb]"
]
check = [
"mypy==1.8.0",
"bandit",
"pip-audit",
"types-colorama",
"types-psutil",
"types-python-dateutil",
"types-PyYAML",
"types-requests",
"types-setuptools",
]
[tool.setuptools.dynamic]
version = {file = "VERSION"}
[tool.coverage.report]
exclude_also = [
"if tries < max_tries:"
]
[tool.coverage.run]
branch = false
[tool.coverage.html]
title = "e3 aws coverage report"
[tool.pytest.ini_options]
addopts = "--failed-first --e3"
[tool.mypy]
# Ensure mypy works with namespace in which there is no toplevel
# __init__.py. Explicit_package_bases means that that mypy_path
# will define which directory is the toplevel directory of the
# namespace.
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = [
"coverage.*",
"botocore.*",
"boto3.*",
"requests.*",
"docker.*",
"troposphere.*",
]
ignore_missing_imports = true