-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
200 lines (175 loc) · 5.18 KB
/
pyproject.toml
File metadata and controls
200 lines (175 loc) · 5.18 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
[project]
name = "trackers"
version = "2.3.0rc0"
description = "A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms"
readme = "README.md"
maintainers = [
{ name = "Piotr Skalski", email = "piotr@roboflow.com" },
]
authors = [
{ name = "Roboflow et al.", email = "develop@roboflow.com" },
]
license = {text = "Apache License 2.0"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
keywords = ["tracking", "mot", "sort", "bytetrack", "machine-learning", "deep-learning", "vision", "ML", "DL", "AI", "DETR", "YOLO", "Roboflow"]
dependencies = [
"numpy>=2.0.2",
"supervision>=0.26.1",
"scipy>=1.13.1",
"opencv-python>=4.8.0",
"rich>=13.0.0"
]
[project.optional-dependencies]
detection = ["inference-models>=0.19.0"]
[project.scripts]
trackers = "trackers.scripts.__main__:main"
[dependency-groups]
dev = [
"uv>=0.4.20",
"pytest>=8.3.3",
"pre-commit>=4.2.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-glightbox>=0.4.0",
"mkdocs-material>=9.6.11",
"mkdocs-minify-plugin>=0.8.0",
"mkdocstrings-python>=1.10.9,<3.0.0", # todo: breaking changes in 2.x
"mike>=2.1.3",
]
build = [
"twine>=5.1.1",
"wheel>=0.40",
"build>=0.10"
]
mypy-types = [
"types-aiofiles>=24.1.0.20250326",
"types-requests>=2.32.0.20250328",
"types-tqdm>=4.67.0.20250417",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["trackers"]
[tool.ruff]
target-version = "py310"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"yarn-error.log",
"yarn.lock",
"docs",
]
line-length = 88
indent-width = 4
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"E", # pycodestyle errors and warnings (https://docs.astral.sh/ruff/rules/#error-e)
"F", # Pyflakes (imports, unused variables, etc.) (https://docs.astral.sh/ruff/rules/#pyflakes-f)
"I", # isort (import sorting) (https://docs.astral.sh/ruff/rules/#isort-i)
"A", # flake8-builtins (no use of built-in variable names) (https://docs.astral.sh/ruff/rules/#flake8-builtins-a)
"Q", # flake8-quotes (consistent quote style) (https://docs.astral.sh/ruff/rules/#flake8-quotes-q)
"W", # pycodestyle warnings (https://docs.astral.sh/ruff/rules/#warning-w)
"RUF", # Ruff-specific rules (https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf)
"S", # security rules (https://docs.astral.sh/ruff/rules/#flake8-bandit-s)
"UP", # pyupgrade rules (https://docs.astral.sh/ruff/rules/#pyupgrade-up)
]
ignore = []
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
pylint.max-args = 5 # Default is 5
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
docstring-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"test/**" = ["S101"] # Allow assert in tests
"trackers" = []
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 10.
max-complexity = 10
[tool.ruff.lint.isort]
order-by-type = true
no-sections = false
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
pythonpath = "."
testpaths = ["test"]
addopts = [
"--doctest-modules",
"--color=yes",
]
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE"
markers = [
"integration: marks tests as integration tests (require external data download)",
]
[tool.codespell]
skip = "*.pth"
ignore-words-list = "mot"
[tool.mypy]
python_version = "3.10"
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = [
"requests",
"torch",
"torchvision",
"torchvision.transforms",
"firerequests",
]
ignore_missing_imports = true