Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (90 loc) · 2.56 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (90 loc) · 2.56 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
# pyproject.toml
[build-system]
requires = [
"setuptools>=61.0",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "dloseg"
version = "0.1.0"
description = "A toolkit for segmentation and analysis of deformable linear objects in robotics"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Rotem Atari", email = "rotem.atri@gmail.com" }
]
keywords = ["robotics", "DLO", "segmentation", "computer-vision"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
# All tools—dev, geometry, vision—now live here
dependencies = [
"torch",
"torchvision",
"groundingdino-py",
"torchpack",
"onnx",
"onnxsim",
"numpy",
"scipy",
"scikit-image",
"opencv-contrib-python",
"timm",
"albumentations",
"scikit-learn",
"networkx",
"matplotlib",
"tqdm",
"hydra-core",
"iopath",
"pillow",
"pyyaml",
"ruamel.yaml",
"open3d",
"trimesh",
"transformers",
"einops",
"gdown",
"supervision",
"pycocotools",
"imageio",
"addict",
"yapf",
"typeguard"
]
# setuptools-specific in-TOML options
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["dloseg*"]
[dependency-groups]
dev = [
"basedpyright>=1.8",
"pytest>=8",
"ruff>=0.6",
]
[tool.ruff]
line-length = 100
target-version = "py310" # match requires-python >=3.10
# src/segmentors is vendored third-party (MobileSAMv2/ultralytics/efficientvit);
# do not lint or reformat it.
extend-exclude = ["src/segmentors", "**/*.egg-info"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM"] # pyflakes, pycodestyle, isort, bugbear, pyupgrade, simplify
ignore = ["E501"] # let the formatter own line length
[tool.pytest.ini_options]
testpaths = ["tests"]
# A sourced ROS 2 workspace leaks its pytest plugins onto PYTHONPATH; several
# fail to import (missing deps) and crash collection. Disable the ROS-origin
# plugins so the suite runs regardless of the shell environment.
addopts = "-p no:launch_testing -p no:launch_pytest -p no:launch_ros -p no:ament_copyright -p no:ament_flake8 -p no:ament_pep257 -p no:ament_lint -p no:ament_xmllint"
[tool.basedpyright]
typeCheckingMode = "standard" # NOT "recommended"/"all" — too noisy for scientific code
pythonVersion = "3.10" # match requires-python >=3.10
include = ["src", "tests", "scripts"]
exclude = ["**/__pycache__", "**/.venv", "scratch", "notebooks", "src/segmentors", "**/*.egg-info"]