-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
140 lines (126 loc) · 2.46 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "skymantle_mock_data_forge"
version = "0.4.0"
dependencies=[
"skymantle_boto_buddy[boto]"
]
requires-python = ">=3.11"
authors = [{ name = "Artin Yong-Bannayan", email = "[email protected]" }]
description = "A library for deploying test data to aws resources when running integration and end-to-end tests."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Topic :: Software Development :: Testing",
]
[project.urls]
Home = "https://github.com/skymantle-tech/skymantle-mock-data-forge"
Issues = "https://github.com/skymantle-tech/skymantle-mock-data-forge/issues"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"pytest-mock",
"bandit",
"black",
"ruff",
"moto[s3,dynamodb,ssm,cloudformation]",
]
path = ".venv"
[tool.black]
line-length = 120
exclude = '''
/(
\.git
| \.tox
| venv
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.bandit]
skips = ['B324']
exclude_dirs = [".venv", "tests", "dist"]
[tool.ruff]
target-version = "py311"
line-length = 120
lint.select = [
"A",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"SIM",
"T",
"TID",
"UP",
"W",
"YTT",
]
lint.ignore = [
# Ignore checks for use `datetime.UTC` alias
"UP017",
# Ignore exception must not use a string literal
"EM101",
# Ignore checks for f-string literal in exception message
"EM102",
# Ignore too many arguments in function definition
"PLR0913"
]
lint.unfixable = []
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "I001"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
omit = [
".venv/*",
"tests/*",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
pythonpath = "src"
markers = []
[tool.hatch.build.targets.sdist]
exclude = [
"/.vscode",
"/.github",
".gitignore",
"Makefile",
]