-
Notifications
You must be signed in to change notification settings - Fork 73
/
pyproject.toml
75 lines (66 loc) · 1.92 KB
/
pyproject.toml
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
[project]
name = "laplace-torch"
version = "0.2.2.2"
description = "laplace - Laplace approximations for deep learning"
readme = "README.md"
authors = [
{ name = "Alex Immer" },
{ name = "Runa Eschenhagen" },
{ name = "Agustinus Kristiadi" },
{ name = "Erik Daxberger" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = { text = "MIT" }
requires-python = ">=3.9"
dependencies = [
"asdfghjkl == 0.1a4",
"backpack-for-pytorch",
"curvlinops-for-pytorch >= 2.0",
"numpy",
"opt_einsum",
"torch >= 2.0",
"torchmetrics",
"torchvision >= 0.15",
]
[project.urls]
Homepage = "https://github.com/aleximmer/Laplace"
"Bug Tracker" = "https://github.com/aleximmer/Laplace/issues"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.setuptools]
py-modules = ["laplace"]
[tool.pdm]
distribution = true
[tool.uv]
default-groups = ["docs"]
[project.optional-dependencies]
dev = ["coveralls", "pytest", "pytest-cov", "pytest-mock", "ruff", "scipy"]
[dependency-groups]
docs = [
"black",
"matplotlib",
"mkdocs == 1.6.1",
"mkdocs-material == 9.5.34",
"mkdocstrings == 0.26.1",
"mkdocstrings-python == 1.11.1",
]
[tool.pytest.ini_options]
testpaths = "tests"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
# Adds isort ("I") and pylint errors and warning ("PLE", "PLW") to defaults.
select = ["E4", "E7", "E9", "F", "I", "PLE", "PLW"]
# Ignore pylint's overwritten loop variable by assignment error
# Skip "Module level import not at top of file"
ignore = ["PLW2901", "E402"]