-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·145 lines (129 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
executable file
·145 lines (129 loc) · 3.61 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
142
143
144
145
[build-system]
requires = ["setuptools", "wheel"]
[project.urls]
"Homepage" = "https://github.com/lnccbrown/LANFactory"
"Bug Tracker" = "https://github.com/lnccbrown/LANFactory/issues"
[project]
name = "lanfactory"
version = "0.6.1"
authors = [
{ name = "Alexander Fengler", email = "alexander_fengler@brown.edu" },
{ name = "Carlos Paniagua", email = "carlos_paniagua@brown.edu" },
{ name = "Hannah Hafner", email = "hhafner@smith.edu" },
]
description = "Package with convenience functions to train LANs"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">3.10, <3.14"
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
dependencies = [
"ssm-simulators>=0.12.2",
"scipy>=1.15.2",
"pandas>=2.2.3",
"torch>=2.7.0",
"flax>=0.10.6",
"tqdm>=4.67.1",
"frozendict>=2.4.6",
"onnx>=1.17.0",
"matplotlib>=3.10.1",
"typer>=0.9.0",
]
keywords = [
"LANs",
"generative models",
"cognitive science",
"neuroscience",
"sbi",
]
[project.optional-dependencies]
mlflow = ["mlflow>=3.6.0"]
hf = ["huggingface-hub>=0.20.0"]
all = ["mlflow>=3.6.0", "huggingface-hub>=0.20.0"]
[dependency-groups]
dev = [
"coverage>=7.6.4",
"ipykernel>=6.29.5",
"ipython>=8.31.0",
"ipywidgets>=8.1.2",
"jupyterlab>=4.2.4",
"mypy>=1.11.1",
"nbconvert>=7.16.5",
"pre-commit>=2.20.0",
"ptpython>=3.0.29",
"pytest-cov>=6.1.1",
"pytest-rerunfailures>=15.1",
"pytest-timer>=1.0.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.1",
"ruff>=0.14.4",
"types-PyYAML",
"mlflow>=3.6.0",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["lanfactory", "lanfactory.*"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO" # set minimum log level for console output
testpaths = ["tests"]
addopts = [
"--cov=src",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-report=html",
"--exitfirst",
"--timer-top-n=25",
]
[tool.ruff]
line-length = 88
src = ["src/lanfactory", "tests"]
exclude = [
"notebooks/*",
"docs/*",
"docs/basic_tutorial/basic_tutorial.ipynb",
]
# Coverage settings
[tool.coverage.run]
source = ["src"]
branch = true # Measure branch coverage
parallel = true # Support parallel test execution
omit = [
"*/tests/*",
"*/__init__.py",
"*/conftest.py",
"*/cli/jax_train.py", # CLI entry points are tested via smoke tests
"*/cli/torch_train.py", # CLI entry points are tested via smoke tests
"*/cli/upload_hf.py", # CLI entry points are tested via smoke tests
"*/cli/download_hf.py", # CLI entry points are tested via smoke tests
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@abstractmethod",
"except.*Exception",
"except.*ImportError",
"logger.error",
]
[project.scripts]
jaxtrain = "lanfactory.cli.jax_train:app"
torchtrain = "lanfactory.cli.torch_train:app"
transform-onnx = "lanfactory.onnx.transform_onnx:app"
upload-hf = "lanfactory.cli.upload_hf:app"
download-hf = "lanfactory.cli.download_hf:app"
[tool.setuptools.package-data]
"lanfactory.cli" = ["config_network_training_lan.yaml"]