-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
240 lines (217 loc) · 5.36 KB
/
pyproject.toml
File metadata and controls
240 lines (217 loc) · 5.36 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
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
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.uv]
prerelease = "allow"
[project]
name = "trackstudio"
version = "0.1.0"
description = "Multi-camera vision tracking system with WebRTC streaming"
readme = "README.md"
license = "Apache-2.0"
authors = [
]
maintainers = [
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Multimedia :: Video",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
keywords = ["computer-vision", "tracking", "multi-camera", "webrtc", "rtsp", "object-detection"]
requires-python = ">=3.10"
dependencies = [
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"aiortc>=1.6.0",
"aiofiles>=23.2.1",
"numpy>=1.24.0",
"opencv-python>=4.8.0",
"pydantic>=2.5.0",
"python-multipart>=0.0.6",
"websockets>=12.0",
"torch>=2.0.0",
"torchvision>=0.15.0",
"supervision", # Pin to stable version
"click>=8.1.0",
"rich>=13.0.0",
"python-dotenv>=1.0.0",
"rfdetr @ git+https://github.com/roboflow/rf-detr.git",
"trackers",
"torchreid",
"gdown>=5.2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.6.0",
"mypy>=1.0.0",
"bandit>=1.7.0",
"pre-commit>=3.0.0",
"build>=0.10.0",
"twine>=4.0.0",
]
docs = [
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.0.0",
"sphinx-autodoc-typehints>=1.12.0",
]
[project.urls]
Homepage = "https://github.com/playbox-dev/trackstudio"
Documentation = "https://trackstudio.readthedocs.io/"
Repository = "https://github.com/playbox-dev/trackstudio"
Issues = "https://github.com/playbox-dev/trackstudio/issues"
Changelog = "https://github.com/playbox-dev/trackstudio/blob/main/CHANGELOG.md"
[project.scripts]
trackstudio = "trackstudio.cli:main"
[dependency-groups]
dev = [
"mypy>=1.16.1",
"pre-commit>=4.2.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["trackstudio*"]
exclude = ["tests*", "docs*", "examples*"]
[tool.setuptools.package-data]
trackstudio = [
"static/**/*",
"templates/**/*",
"**/*.json",
"**/*.yaml",
"**/*.yml",
]
[tool.black]
line-length = 120
target-version = ['py310', 'py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| trackstudio/static
)/
'''
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = false # Keep false for gradual typing
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
ignore_missing_imports = true
show_error_codes = true
exclude = [
"trackstudio/static/",
"build/",
"dist/",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = [
"tests",
]
pythonpath = ["."]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RET", # flake8-return
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate (commented code)
"PL", # pylint
"PERF", # perflint
]
ignore = [
"E501", # line-too-long (handled by formatter)
"E402", # module-level-import-not-at-top-of-file
"PLR0913", # too-many-arguments
"PLR0912", # too-many-branches
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
"ARG002", # unused-method-argument
"ERA001", # commented-out-code (allow some)
]
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["trackstudio"]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
exclude = [
".git",
"__pycache__",
"dist",
"build",
"trackstudio/static",
"*.egg-info",
".venv",
".mypy_cache",
".pytest_cache",
]
[tool.coverage.run]
source = ["trackstudio"]
omit = [
"*/tests/*",
"*/static/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.bandit]
exclude_dirs = ["tests", "trackstudio/static"]
skips = [
"B101", # assert_used
"B601", # paramiko_calls
"B602", # subprocess_popen_with_shell_equals_true (we need some shell calls)
"B603", # subprocess_without_shell_equals_true (secure subprocess calls)
"B607", # start_process_with_partial_path (safe npm calls)
]