-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
172 lines (149 loc) · 3.81 KB
/
pyproject.toml
File metadata and controls
172 lines (149 loc) · 3.81 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "visdet"
version = "2.28.4"
description = "Visia's fork of MMDetection - Object Detection Toolbox and Benchmark"
readme = "README.md"
requires-python = ">=3.10,<3.13"
license = {text = "Apache License 2.0"}
authors = [
{name = "George Pearse", email = "george@visia.ai"},
{name = "MMDetection Contributors", email = "openmmlab@gmail.com"},
]
keywords = ["computer vision", "object detection", "mmdetection"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"addict",
"matplotlib",
"numpy",
"opencv-python",
"pycocotools",
"pydantic>=2.0.0",
"pyyaml",
"rich",
"scipy",
"shapely",
"six",
"termcolor",
"terminaltables",
"torch>=1.9.0",
"torchvision>=0.10.0",
"tqdm>=4.67.1",
"yapf",
]
[project.optional-dependencies]
optional = [
"cityscapesscripts",
"imagecorruptions",
"scikit-learn",
]
mim = [
"openmim",
]
albu = [
"albumentations>=0.3.2",
]
mkdocs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.24.0",
"mkdocs-literate-nav>=0.6.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-section-index>=0.3.0",
"mkdocs-git-revision-date-localized-plugin>=1.2.0",
]
tests = [
"asynctest>=0.13.0",
"codecov",
"flake8",
"interrogate",
"isort==4.3.21",
"kwarray",
"onnx>=1.14.0",
"onnxruntime>=1.16.0",
"parameterized",
"protobuf>=3.20.0,<4.25.0",
"pytest",
"pytest-asyncio",
"pytest-cov",
"ubelt",
"xdoctest>=0.10.0",
"yapf",
]
all = [
"cityscapesscripts",
"imagecorruptions",
"scikit-learn",
"albumentations>=0.3.2",
]
[project.urls]
Homepage = "https://binitai.github.io/visdet/"
Repository = "https://github.com/BinItAI/visdet"
Documentation = "https://binitai.github.io/visdet/"
"Original Project" = "https://github.com/open-mmlab/mmdetection"
[tool.hatch.build]
# Exclude nested pyproject.toml that was part of old workspace structure
exclude = [
"visdet/pyproject.toml",
]
[tool.hatch.build.targets.wheel]
# The package code is in visdet/ - tell hatchling where to find it
packages = ["visdet"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501", "E721", "F401", "F403"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.ruff.lint.isort]
known-first-party = ["visdet"]
split-on-trailing-comma = true
force-single-line = false
[tool.pyright]
typeCheckingMode = "basic"
pythonVersion = "3.10"
reportMissingImports = true
reportMissingTypeStubs = false
include = ["visdet"]
exclude = ["visdet/tests", "tests", "archive", "configs"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-v --tb=short --strict-markers"
norecursedirs = ["archive", ".git", ".venv", "build", "dist"]
[tool.coverage.run]
source = ["mmdet"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[dependency-groups]
dev = [
"prek>=0.2.10",
"ruff",
"skylos",
"modal",
"zuban>=0.1.2",
]
# Note: mmtracking git dependency removed due to build isolation issues
# To install for tests: uv pip install --no-build-isolation git+https://github.com/open-mmlab/mmtracking.git
# Test token: ci-pipeline-verification-token-001