-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.48 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.48 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
[project]
name = "ml-detector"
version = "v0.4.0"
description = "Add your description here"
readme = "README.md"
requires-python = "==3.13.*"
dependencies = [
"fastapi==0.136.0",
"python-multipart==0.0.26",
"ultralytics==8.4.39",
"uvicorn==0.44.0",
]
[project.optional-dependencies]
cpu = [
"torch==2.11.0+cpu",
"torchvision==0.26.0+cpu",
]
cuda = [
"torch==2.11.0+cu128",
"torchvision==0.26.0+cu128",
]
[tool.uv]
environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
]
conflicts = [
[
{ extra = "cpu" },
{ extra = "cuda" },
],
]
[tool.uv.sources]
torch = [
{ index = "torch-cpu", extra = "cpu" },
{ index = "torch-cuda", extra = "cuda" },
]
torchvision = [
{ index = "torch-cpu", extra = "cpu" },
{ index = "torch-cuda", extra = "cuda" },
]
[[tool.uv.index]]
name = "torch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "torch-cuda"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[dependency-groups]
dev = [
"basedpyright==1.39.0",
"ruff==0.15.11",
]
[tool.basedpyright]
# TODO: switch to "recommended"
typeCheckingMode = "strict"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["ALL"]
fixable = ["ALL"]
ignore = [
"COM812", # trailing comma missing - conflicts with formatter
"FIX", # flake8-fixme
"TD", # flake8-todo
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
]