-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (79 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (79 loc) · 2 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 = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[project]
name = "nngeometry"
dynamic = ["version"]
description = '{KFAC,EKFAC,Diagonal,Implicit} Fisher Matrices and finite width NTKs in PyTorch'
readme = "Readme.md"
requires-python = ">=3.11"
license = "BSD-3-Clause"
authors = [
{ name = "Thomas George", email = "tfjgeorge@gmail.com" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"torch",
"torchvision",
"tqdm"
]
[project.urls]
Documentation = "https://nngeometry.readthedocs.io/"
Issues = "https://github.com/tfjgeorge/nngeometry/issues"
Source = "https://github.com/tfjgeorge/nngeometry"
[tool.hatch.build.targets.wheel]
packages = ["nngeometry"]
[tool.ruff.lint.isort]
known-first-party = ["nngeometry"]
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
format = "{major}.{minor}.{patch}.dev{distance}"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[dependency-groups]
dev=[
"ipykernel",
"pytest",
"pytest-cov",
"pytest-xdist",
"mnist1d",
]
[tool.coverage.run]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod"
]
[tool.ruff]
line-length = 88
exclude = ["docs"]
[tool.ruff.lint]
preview = true
select = ["A", "E", "F", "W", "I"]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu" },
]
torchvision = [
{ index = "pytorch-cpu", extra = "cpu" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[project.optional-dependencies]
cpu = ["torch", "torchvision"]