forked from UCL-ARC/dirac-swift-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
193 lines (183 loc) · 3.58 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
]
[project]
authors = [
{email = "[email protected]", name = "Harry Moss"},
{email = "[email protected]", name = "Peter Andrews-Briscoe"},
]
classifiers = [
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Typing :: Typed",
]
dependencies = [
"aiofiles>=23.1.0",
"cloudpickle==2.2.1",
"fastapi>=0.103.0,<0.104.0",
"gunicorn>=21.2.0",
"httpx>=0.24.1",
"loguru>=0.7.0",
"pydantic-settings~=2.0.2",
"pydantic~=2.1",
"pyjwt>=2.8.0",
"python-dotenv>=1.0.0",
"python-multipart>=0.0.6",
"requests>=2.31.0",
"swiftsimio~=7.0.1",
"uvicorn>=0.22.0",
]
description = "Repository for the REST API side of the DiRAC-SWIFT project "
keywords = [
]
name = "dirac-swift-api"
optional-dependencies = {dev = [
"black",
"build",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"ruff",
"tox",
"twine",
"types-requests",
"types-urllib3",
], test = [
"freezegun",
"pytest",
"pytest-cov",
"pytest-mock",
"tox",
]}
readme = "README.md"
requires-python = ">=3.10"
version = "1.0.1"
license.file = "LICENCE.md"
urls.homepage = "https://github.com/UCL-ARC/dirac-swift-api"
[tool.coverage]
report = {skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, source = [
"dirac-swift-api",
]}
paths.source = [
"src/api",
".tox*/*/lib/python*/site-packages",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
explicit_package_bases = true
follow_imports = "silent"
mypy_path = "./src/"
no_implicit_reexport = true
plugins = [
"pydantic.mypy",
]
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = "--color=yes -v"
testpaths = [
"tests",
]
[tool.ruff]
fix = true
force-exclude = true
ignore = [
"B008", # Do not perform function call in argument defaults
"D203", # no-blank-line-before-class
"D212", # multi-line-summary-first-line
"D417", # argument description in docstring (unreliable),
"PGH003", # Use specific rule codes when ignoring type issues
"PLR0911", # Too many return statements (10 > 6)
"PLR0913", # Too many arguments to function call
]
line-length = 100
per-file-ignores = {"test_*" = [
"S101",
], "tests/*" = [
"D100",
"D103",
"D104",
]}
select = [
"A",
"ARG",
"B",
"BLE",
"C",
"COM",
"D",
"DJ",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T",
"TCH",
"TID",
"UP",
"W",
"YTT",
]
target-version = "py310"
isort.known-first-party = [
"dirac_swift_api",
]
mccabe.max-complexity = 18
pep8-naming.classmethod-decorators = [
"classmethod",
"pydantic.validator",
]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.tomlsort]
all = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
overrides."project.classifiers".inline_arrays = false
overrides."tool.coverage.paths.source".inline_arrays = false
[tool.tox]
legacy_tox_ini = """
[gh-actions]
python =
3.10: py310
[testenv]
commands =
pytest -ra . --cov=api
deps =
freezegun
pytest
pytest-cov
pytest-mock
[tox]
env_list =
py310
"""