-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (57 loc) · 1.51 KB
/
pyproject.toml
File metadata and controls
66 lines (57 loc) · 1.51 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "vision_gimbal_tracker"
version = "1.0.0"
description = "Ultra-low-latency vision-guided gimbal tracking pipeline"
requires-python = ">=3.12,<3.13"
dependencies = [
"numpy>=2.0,<3.0",
"opencv-python>=4.13,<5.0",
"PyYAML>=6.0,<7.0",
"scipy>=1.16,<2.0",
"ultralytics>=8.4,<9.0",
"cuda-python>=12.0",
"pyserial>=3.5,<4.0",
]
[project.optional-dependencies]
dev = [
"pytest>=9.0,<10.0",
"pytest-cov>=7.0,<8.0",
"coverage>=7.0,<8.0",
"black>=26.0",
"ruff>=0.15",
"mypy>=1.20",
]
[project.scripts]
tracker = "src.main:main"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
ignore = [
"E501", # line length handled by black
"UP042", # `class X(str, Enum)` migration deferred — affects pickling/JSON
]
[tool.ruff.lint.per-file-ignores]
"scripts/calibrate.py" = ["E701", "E702"]
"tests/conftest.py" = ["E402"] # hardware stubs must be installed before imports
"tests/test_wp_tracking_improvements.py" = ["E402"] # multi-section test file
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
addopts = "--cov=src --cov-report=term-missing"
markers = [
"unit: unit tests",
"integration: integration tests",
"perf: performance regression tests",
]
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true