-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (68 loc) · 1.49 KB
/
pyproject.toml
File metadata and controls
75 lines (68 loc) · 1.49 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "hologen"
version = "0.3.0"
description = "Holography dataset generation toolkit"
readme = "README.md"
requires-python = ">=3.13"
authors = [
{ name = "Gyokhan Kochmarla", email = "hello@gyokhan.com" },
]
license = { text = "MIT" }
dependencies = [
"numpy>=2.3,<2.4",
"pillow>=12.0,<13.0",
]
[project.optional-dependencies]
dev = [
"black>=24.0",
"ruff>=0.2",
"pytest>=8.0",
"pytest-cov>=4.0",
]
[tool.black]
target-version = ["py313"]
line-length = 88
[tool.ruff]
target-version = "py313"
line-length = 88
select = ["E", "F", "I", "UP", "N"]
ignore = ["E203", "E266", "E501", "B008"]
[tool.ruff.isort]
known-first-party = ["hologen"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"--strict-markers",
"--strict-config",
"--cov=src/hologen",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-fail-under=90",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["src/hologen"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]