Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (117 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (117 loc) · 2.61 KB
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
[build-system]
requires = ["setuptools>=61.8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "speedcloud"
version = "0.0.1"
requires-python = ">=3.11"
authors = [{name = "University Library at The University of Illinois at Urbana Champaign: Preservation Services", email = "prescons@library.illinois.edu"}]
description = "Speedwagon in the Cloud!!!"
dependencies =[
"aiofiles",
"fastapi",
"pydantic>=2.0",
"pydantic-settings",
'sse_starlette',
"python-multipart",
"tomlkit",
"speedwagon>=0.4.0b6",
"httpx"
]
[dependency-groups]
test = [
"pytest<10",
"pytest-asyncio",
"pytest-timeout"
]
type-check = [
"mypy",
"types-setuptools",
"types-aiofiles"
]
code-style = ["flake8", "pydocstyle"]
deploy = ["uvicorn"]
lint = [
"pylint",
"ruff"
]
tox = [
"tox"
]
tox-uv = [
{include-group = "tox"},
"tox-uv-bare"
]
dev = [
"coverage",
{include-group = "security"},
{include-group = "lint"},
{include-group = "code-style"},
{include-group = "test"},
{include-group = "type-check"},
{include-group = "tox"},
]
ci = [
"pysonar",
{include-group = "dev"}
]
security = [
"bandit",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--verbose -m \"not notFromSetupPy\""
norecursedirs = "thirdparty"
pythonpath = "src/backend"
junit_family="xunit2"
markers=[
"adapter",
"slow: mark test as slow.",
"model_data",
"integration"
]
[tool.pydocstyle]
# Ignore files that end in _ui.py because they are machine generated
match="((?!test).*)(^(?!.*(ui)).*)\\.py"
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
mypy_path = "src/backend"
namespace_packages = false
[[tool.mypy.overrides]]
module = "speedcloud.api.routes"
check_untyped_defs = true
[tool.setuptools.packages.find]
where = ["src/backend"]
include = ["speedcloud*"]
[tool.coverage.run]
relative_files = true
branch = true
source = ["src/backend/"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]
[tool.ruff]
select = ["E", "F", "W", "D", "B"]
exclude = [
"windows_build",
"tests",
]
line-length = 79
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.params.Depends", "fastapi.Query", "fastapi.params.Query"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.black]
line-length = 79
[tool.uv.sources]
speedwagon = {index = "uiuc_prescon_python"}
[[tool.uv.index]]
url = "https://pypi.org/simple"
default = true
[[tool.uv.index]]
name = "uiuc_prescon_python"
url = "https://nexus.library.illinois.edu/repository/uiuc_prescon_python/simple"
explicit = true