-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
138 lines (125 loc) · 3.27 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
[tool.poetry]
name = "aws_sra_examples"
version = "2.1.7"
description = "AWS Security Reference Architecture Examples"
authors = ["Amazon Web Services <[email protected]>"]
license = "MIT-0 License"
[tool.poetry.dependencies]
python = "^3.9"
boto3 = "1.20.32"
crhelper = "^2.0.11"
[tool.poetry.dev-dependencies]
boto3-stubs = { extras = ["all"], version = "1.20.32" }
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
pytest-mock = "^3.10.0"
pytest-xdist = "^3.1.0"
black = "^22.12.0"
isort = "^5.11.2"
rope = "^1.6.0"
mypy = "^0.991"
flake8 = "5.0.4" # Leaving at 5.0.4 until full dependency support (e.g. flake8-eradicate, flake8-broken-line, dlint)
darglint = "^1.8.1"
dlint = "^0.13.0"
flake8-2020 = "^1.7.0"
flake8-SQL = "^0.4.1"
flake8-annotations-complexity = "^0.0.7"
flake8-bandit = "^4.1.1"
flake8-breakpoint = "^1.1.0"
flake8-broken-line = "^0.6.0"
flake8-bugbear = "^22.12.6"
flake8-builtins = "^2.0.1"
flake8-cognitive-complexity = "^0.1.0"
flake8-comprehensions = "^3.10.1"
flake8-docstrings = "^1.6.0"
flake8-eradicate = "^1.4.0"
flake8-executable = "^2.1.2"
flake8-expression-complexity = "^0.0.11"
flake8-fixme = "^1.1.1"
flake8-functions = "^0.0.7"
flake8-markdown = "^0.4.0"
flake8-mutable = "^1.2.0"
flake8-no-implicit-concat = "^0.3.4"
flake8-print = "^5.0.0"
flake8-printf-formatting = "^1.1.2"
flake8-pytest-style = "^1.6.0"
flake8-raise = "^0.0.5"
flake8-return = "^1.2.0"
flake8-scrapy = "^0.0.1"
flake8-simplify = "^0.19.3"
flake8-todos = "^0.2.1"
flake8-tuple = "^0.4.1"
flake8-typing-imports = "^1.14.0"
flake8-unused-arguments = "^0.0.12"
flake8-use-fstring = "^1.4"
flake8-use-pathlib = "^0.3.0"
flake8-variables-names = "^0.0.5"
pep8-naming = "^0.13.2"
aws-lambda-typing = "^2.16.2"
safety = "^2.3.5"
pylic = "^3.4.0"
[tool.black]
line-length = 150
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 150
[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
warn_unused_configs = true
warn_unused_ignores = true
warn_no_return = true
check_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
show_column_numbers = true
show_error_context = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
explicit_package_bases = true
namespace_packages = true
no_implicit_optional = false
[tool.coverage.report]
exclude_lines = ["pragma: no cover"]
show_missing = true
[tool.coverage.run]
branch = true
omit = ["tests/*"]
source = ["."]
[tool.pytest.ini_options]
addopts = [
# "--cov=./",
"--cov-report=xml",
"--cov-report=term",
"--durations=5",
"--numprocesses=auto",
"-rA",
"--ignore-glob=old/*",
]
python_files = ["test_*.py"]
xfail_strict = true
[tool.pyright]
stubPath = "./typings"
exclude = ["**/node_modules", "**/__pycache__"]
pythonVersion = "3.9"
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportGeneralTypeIssues = "none"
reportTypedDictNotRequiredAccess = "none"
[tool.pylic]
safe_licenses = ["MIT License", "BSD License", "Apache Software License"]
[tool.vulture]
ignore_decorators = ["@helper.*"]
ignore_names = ["lambda_handler"]
min_confidence = 60
paths = ["aws_sra_examples"]
sort_by_size = true
verbose = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"