forked from Megvii-BaseDetection/YOLOX
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (93 loc) · 2.88 KB
/
pyproject.toml
File metadata and controls
106 lines (93 loc) · 2.88 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "pixeltable-yolox"
version = "0.4.2"
description = "Lightweight, open-source, high-performance Yolo implementation"
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.9,<4.0"
authors = [
{ name = "Pixeltable, Inc.", email = "contact@pixeltable.com>" },
{ name = "megvii basedet team" }
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy (>=1.26.4)",
"torch (>=2.2.2)",
"opencv-python (>=4.10.0.84)",
"loguru (>=0.7.2)",
"tqdm (>=4.67.1)",
"torchvision (>=0.17.2)",
"thop (>=0.1.1.post2209072238)",
"ninja (>=1.11.1.1)",
"tabulate (>=0.9.0)",
"psutil (>=5.9.7)",
"tensorboard (>=2.18.0)",
"pycocotools (>=2.0.7)",
"onnx (>=1.17.0)",
"onnxsim (>=0.4.10)",
]
[project.urls]
repository = "https://github.com/pixeltable/pixeltable-yolox"
[project.scripts]
yolox = "yolox.cli:main"
[tool.poetry.plugins."mkdocstrings.python.templates"]
extension-name = "tool.doc_plugins.mkdocstrings:get_templates_path"
[tool.poetry]
packages = [{ include = "yolox" }]
requires-poetry = ">=2.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# pytest-related
pytest = "^7.2.1"
pytest-xdist = { extras = ["psutil"], version = "^3.3.1" }
pytest-rerunfailures = "^14.0.0"
ruff = "^0.9.7"
mypy = "^1.15.0"
[tool.isort]
force_single_line = false
line_length = 120
multi_line_output = 3 # For ruff compatibility
split_on_trailing_comma = false
[tool.mypy]
allow_redefinition = true
disable_error_code = "no-any-unimported, no-any-return"
disallow_any_unimported = true
check_untyped_defs = true
follow_imports = "silent"
show_error_codes = true
strict_optional = false
warn_return_any = true
warn_unused_ignores = true
[tool.ruff]
exclude = ["*.ipynb"] # For now, exclude notebooks
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "W", "C", "I", "N", "B", "A", "ICN", "PYI", "SIM", "TD002", "PL", "RUF"]
ignore = ["PLC0415", "PLR0904", "PLR0912", "PLR0913", "PLR0914", "PLR0915", "PLR2004"]
preview = true
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["pixeltable"]
split-on-trailing-comma = false
[tool.ruff.format]
line-ending = "lf"
quote-style = "single"
skip-magic-trailing-comma = true