-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (44 loc) · 1.13 KB
/
Copy pathpyproject.toml
File metadata and controls
50 lines (44 loc) · 1.13 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
[project]
name = "layerengine"
version = "0.1.0"
description = "Flat image -> separated, hole-free layer stack"
requires-python = ">=3.11"
dependencies = [
"numpy>=2.1",
"scipy>=1.14",
"pillow>=11.0",
"scikit-image>=0.25",
"pydantic>=2.9",
]
[project.optional-dependencies]
# Heavy ML deps, installed only when wiring real model backends.
models = [
"torch>=2.9",
"transformers>=5.0",
"pymatting>=1.1.15",
]
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"ruff>=0.8",
]
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# `models` tests need real weights and the network. Excluded by default so a
# clean clone runs offline; `pytest -m models` re-selects them (an explicit
# -m on the command line overrides this one).
addopts = "-q --strict-markers -m 'not models'"
markers = [
"slow: takes more than a second",
"models: requires real model weights / network",
]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]