-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (124 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
141 lines (124 loc) · 3.19 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ll_gen"
version = "0.1.0"
description = "Generation orchestration for the LatticeLabs CAD toolkit — Neural Propose, Deterministic Dispose"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9,<3.13"
authors = [
{name = "LatticeLabs"},
]
dependencies = [
"numpy>=1.24",
"pydantic>=2.0",
]
[project.optional-dependencies]
# Core CAD processing (for disposal engine)
cad = [
# pythonocc-core must be installed via conda-forge
# cadquery must be installed via conda-forge or pip
"numpy-stl>=3.0",
"trimesh>=4.0",
]
# Neural generation (for proposal generation)
ml = [
# torch must be installed via conda-forge to avoid OpenMP conflicts
"transformers>=4.35",
"safetensors",
"einops",
]
# Dataset loading
data = [
"datasets>=2.14",
"huggingface-hub>=0.17",
]
# Conditioning (text/image/multimodal encoders)
conditioning = [
"transformers>=4.35",
"Pillow>=9.0",
"sentence-transformers>=2.2",
]
# Visual verification
vision = [
"Pillow>=9.0",
]
# Full installation (everything)
all = [
"ll_gen[cad,ml,data,vision,conditioning]",
]
# Development
dev = [
"pytest>=7.4",
"pytest-timeout>=2.1",
"pytest-cov>=4.0",
"pytest-xdist>=3.0",
"black>=23.0",
"ruff>=0.1",
"mypy>=1.0",
]
[tool.setuptools.packages.find]
include = ["ll_gen*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
timeout = 300
markers = [
"slow: marks tests as slow (deselect with -m 'not slow')",
"requires_gpu: marks tests that need a GPU",
"requires_pythonocc: marks tests that need pythonocc-core",
"requires_cadquery: marks tests that need cadquery",
"requires_torch: marks tests that need PyTorch",
"requires_cadling: marks tests that need cadling package",
"requires_geotoken: marks tests that need geotoken package",
"integration: marks integration tests",
"unit: marks unit tests",
]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311", "py312"]
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # bugbear
]
ignore = [
"E501", # line too long (handled by black)
]
[tool.mypy]
python_version = "3.9"
check_untyped_defs = true
disallow_untyped_defs = false
warn_return_any = true
warn_unused_configs = true
[tool.coverage.run]
source = ["ll_gen"]
omit = ["*/tests/*", "*/test_*.py"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
"except ImportError",
"_OCC_AVAILABLE = False",
"_CADLING_.*_AVAILABLE = False",
"_STEPNET_AVAILABLE = False",
"_TORCH_AVAILABLE = False",
"_PIL_AVAILABLE = False",
]
show_missing = true
fail_under = 0