-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (75 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (75 loc) · 2.28 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
[build-system]
requires = ["setuptools>=80", "setuptools-scm[simple]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pystruct3d"
description = "Open-source Python library for bounding box fitting, evaluation metrics, and visualization in scan-to-BIM workflows"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10,<3.13"
license = { file = "LICENSE" }
authors = [
{ name = "Mahdi Chamseddine", email = "mahdi.chamseddine@dfki.de" },
{ name = "Fabian Kaufmann", email = "fabian.kaufmann@rptu.de" },
]
dependencies = [
"laspy[lazrs,laszip]>=2.0.0",
"matplotlib>=3.7.0",
"numpy>=1.24.0",
"open3d>=0.18.0",
"pye57>=0.4.0",
"scipy>=1.11.0",
"tqdm>=4.60.0",
]
[dependency-groups]
dev = [
"pdoc>=14.0.0",
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"ruff>=0.15.0",
"ty>=0.0.44",
]
[tool.setuptools.packages.find]
include = ["pystruct3d*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
exclude = [".eggs", ".git", ".venv"]
line-length = 88 # same as black
indent-width = 4
[tool.ruff.format]
quote-style = "double"
preview = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Formatter owns these
"E501", # line too long — formatter enforces line-length
"COM812", # trailing comma — formatter manages
# Docstring style — too prescriptive for scientific code; revisit separately
"D",
# Exception message style — too prescriptive for scientific code
"TRY003",
"EM101",
"EM102",
# Pylint
"PLR0913", # too many arguments — pipeline/scientific functions
"PLR2004", # magic value comparisons — numeric constants in scientific code
# Ruff Unicode — math notation (×, −, σ, …)
"RUF001",
"RUF002",
"RUF003",
# Naming — rotation matrix R is conventional in linear algebra
"N806",
# Import placement — intentional lazy imports for heavy optional deps (open3d, pye57)
"PLC0415",
# TODO annotations — opinionated formatting requirements
"TD002",
"TD003",
"FIX002",
]
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["T201", "PLW0108", "C901", "EXE001", "ANN"]
"tests/*" = ["S101", "ANN"]
[tool.ruff.lint.pydocstyle]
convention = "google"