-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
294 lines (262 loc) · 6.81 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "Ligare.all"
requires-python = ">=3.10"
authors = [
{name = 'Aaron Holmes', email = '[email protected]'}
]
description = 'A framework for quickly developing new Python applications.'
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Natural Language :: English"
]
dependencies = [
"Ligare.AWS",
"Ligare.database",
"Ligare.development",
"Ligare.GitHub",
"Ligare.identity",
"Ligare.platform",
"Ligare.programming",
"Ligare.testing",
"Ligare.web"
]
dynamic = ["version", "readme"]
[tool.setuptools.dynamic]
version = {attr = "Ligare.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
[project.urls]
"Homepage" = "https://github.com/uclahs-cds/Ligare"
"Bug Tracker" = "https://github.com/uclahs-cds/Ligare/issues"
"Repository" = "https://github.com/uclahs-cds/Ligare.git"
"Changelog" = "https://github.com/uclahs-cds/Ligare/blob/main/CHANGELOG.md"
[tool.setuptools.package-dir]
"Ligare" = "src"
"Ligare.AWS" = "src/AWS/Ligare/AWS"
"Ligare.database" = "src/database/Ligare/database"
"Ligare.development" = "src/development/Ligare/development"
"Ligare.GitHub" = "src/GitHub/Ligare/GitHub"
"Ligare.identity" = "src/identity/Ligare/identity"
"Ligare.platform" = "src/platform/Ligare/platform"
"Ligare.programming" = "src/programming/Ligare/programming"
"Ligare.testing" = "src/testing/Ligare/testing"
"Ligare.web" = "src/web/Ligare/web"
[tool.setuptools]
packages = [
"Ligare",
"Ligare.AWS",
"Ligare.database",
"Ligare.development",
"Ligare.GitHub",
"Ligare.identity",
"Ligare.platform",
"Ligare.programming",
"Ligare.testing",
"Ligare.web"
]
[tool.setuptools.package-data]
"Ligare" = ["py.typed"]
#
[project.optional-dependencies]
dev-dependencies = [
"tox ~= 4.18",
"pytest ~= 8.0",
"pytest-mock",
"mock",
"pytest-cov >= 4.1,< 7.0",
"coverage ~= 7.4",
"junit2html >= 30.1,< 32.0",
"pyright == 1.1.394",
"isort >= 5.13,< 7.0",
"ruff ~= 0.3",
"bandit[sarif,toml] ~= 1.7"
]
[tool.pyright]
pythonVersion = "3.10"
include = [
"*.py",
"src/",
"test/"
]
exclude = [
"**/build",
"**/.venv",
"**/.github-venv",
"**/.pytest_cache",
".github",
".git",
"**/typings",
"**/node_modules",
"**/__pycache__"
]
extraPaths = [
"src/AWS",
"src/database",
"src/development",
"src/GitHub",
"src/identity",
"src/platform",
"src/programming",
"src/testing",
"src/web"
]
stubPath = "./typings"
useLibraryCodeForTypes = true
typeCheckingMode = "strict"
reportImportCycles = "information"
reportCallInDefaultInitializer = "warning"
reportImplicitOverride = "information"
reportImplicitStringConcatenation = "warning"
reportMissingSuperCall = "information"
reportPropertyTypeMismatch = "error"
reportShadowedImports = "information"
reportUninitializedInstanceVariable = "information"
reportUnnecessaryTypeIgnoreComment = "information"
reportUnusedCallResult = "information"
reportMissingTypeStubs = "information"
reportWildcardImportFromLibrary = "warning"
reportDeprecated = "error"
[tool.pytest.ini_options]
pythonpath = [
".",
"src/AWS",
"src/database",
"src/development",
"src/GitHub",
"src/identity",
"src/platform",
"src/programming",
"src/testing",
"src/web",
]
testpaths = [
"test",
"src/AWS/test",
"src/database/test",
"src/development/test",
"src/GitHub/test",
"src/identity/test",
"src/platform/test",
"src/programming/test",
"src/testing/test",
"src/web/test"
]
addopts = [
"--import-mode=importlib",
# to debug tests without altering these options see
# https://pytest-cov.readthedocs.io/en/latest/debuggers.html
# For more information regarding doing this with VSCode see
# https://github.com/microsoft/vscode-python/issues/21255
# and
# https://github.com/microsoft/vscode-python/issues/21845
"--junitxml=reports/pytest/pytest.xml",
"-o=junit_family=xunit2",
"--cov-report=xml:reports/pytest/cov.xml",
"--cov-report=term-missing",
]
python_files = "test_*.py"
norecursedirs = "__pycache__ build .pytest_cache *.egg-info .venv .github-venv"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310
[testenv]
# these options make Tox use the existing .venv dir created by venv
envdir = {env:VENV:.venv}
recreate = false
skip_install = true
setenv =
# configure --cov here because we can't use
# envvars in pyproject.toml, and we want this
# to be configurable in order to test coverage
# for a subset of tests in the monorepo rather
# than for all tests in the repo.
PYTEST_ADDOPTS = --cov={env:PYTEST_TARGET:.}
commands =
# use `.` add the default --cov option if it's not specified
pytest {env:PYTEST_FLAGS} {env:PYTEST_ADDOPTS:--cov=.} {env:PYTEST_TARGET}
"""
[tool.coverage.report]
include_namespace_packages = true
[tool.coverage.html]
directory = "reports/pytest/coverage"
show_contexts = true
[tool.coverage.run]
data_file = "reports/pytest/.coverage"
dynamic_context = "test_function"
relative_files = true
omit = [
".venv/*",
"*/.venv/*",
".github-venv/*",
"*/test/*",
"*/src/*/test/*",
"build/*",
"*/build/*",
".pytest_cache/*",
".github/*",
".git/*",
"typings/*",
"*/typings/*",
"node_modules/*",
"__pycache__/*",
"*/__pycache__/*"
]
branch = true
[tool.bandit]
exclude_dirs = [
"./build/*",
"./.github-venv/*",
"./.pytest_cache/*",
"./typings/*",
"./node_modules/*",
"./__pycache__/*",
"./.github/*",
"./.venv/*",
"./.git/*",
"./test/*/test*.py",
"./src/*/test/*/test*.py"
]
[tool.ruff]
include = [
"pyproject.toml",
"src/**/*.py",
"src/**/*.pyi",
"test/**/*.py",
"test/**.*.pyi",
]
[tool.ruff.format]
exclude = [
"typings/**/*.py",
"typings/**/*.pyi",
"src/**/typings/**/*.py",
"src/**/typings/**/*.pyi",
"src/**/build/**/*.py",
"src/**/build/**/*.pyi",
]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.isort]
profile = "black"
src_paths = ["src"]
skip_glob = ["src/*/typings", "src/*/build"]
split_on_trailing_comma = false