-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (84 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
99 lines (84 loc) · 2.33 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
[project]
name = "modern-yolonas"
dynamic = ["version"]
description = "Modern YOLO-NAS object detection — clean reimplementation"
license = "MIT"
authors = [{name = "Luis Condados"}]
requires-python = ">=3.13"
dependencies = [
"numpy>=1.24",
"opencv-python-headless>=4.8",
"pillow>=10.0",
"pyyaml>=6.0",
"rich>=13.0",
"typer>=0.9",
"torch>=2.7",
"torchvision>=0.22",
"pycocotools>=2.0",
"huggingface-hub>=0.20",
"safetensors>=0.4",
]
[project.optional-dependencies]
dev = ["pytest>=7.0", "pytest-cov>=6.0", "ruff>=0.4", "mypy>=1.0", "pre-commit"]
docs = ["mkdocs-material>=9.5", "mkdocstrings[python]>=0.24", "mkdocs-gen-files>=0.5", "mkdocs-literate-nav>=0.6"]
serve = ["fastapi>=0.100", "uvicorn>=0.20", "python-multipart>=0.0.6"]
demo = ["gradio>=4.0"]
onnx = ["onnx>=1.14", "onnxruntime>=1.15", "onnxscript>=0.1"]
openvino = ["openvino>=2024.0"]
[project.scripts]
yolonas = "modern_yolonas.cli:main"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.hooks.vcs]
version-file = "src/modern_yolonas/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/modern_yolonas"]
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"slow: marks tests that require model weights or heavy computation",
]
[tool.coverage.run]
source = ["modern_yolonas"]
omit = [
"src/modern_yolonas/_version.py",
# IO / network wrappers — covering these needs integration tests with mocks.
"src/modern_yolonas/hub.py",
"src/modern_yolonas/serve/app.py",
"src/modern_yolonas/export/frigate.py",
]
[tool.coverage.report]
fail_under = 70
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.",
]
[tool.ruff]
line-length = 120
target-version = "py313"
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cu130" }
torchvision = { index = "pytorch-cu130" }
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-cov>=6.0",
"ruff>=0.15.0",
]