-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
79 lines (70 loc) · 1.54 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
76
77
78
[project]
name = "decoding-gpt"
version = "0.0.4"
description = "course materials for CSM AMS course 'Decoding GPT'"
authors = [
{ name = "Michael Ivanitskiy", email = "mivanits@mines.edu" },
]
readme = "README.md"
requires-python = ">=3.11,<3.13"
dependencies = [
# standard scientific computing
"numpy",
"matplotlib",
"scipy",
"ipython",
"ipykernel",
# pytorch and transformers
"torch",
"torchvision",
"jaxtyping",
"transformer_lens",
# custom utilities
"muutils>=0.6.19",
"zanj>=0.3.1",
"trnbl>=0.0.2",
"lmcat",
]
[dependency-groups]
dev = [
# test
"pytest>=8.2.2",
# coverage
"pytest-cov>=4.1.0",
"coverage-badge>=1.1.0",
# type checking
"mypy>=1.0.1",
# docs
'pdoc>=14.6.0',
# tomli since no tomlib in python < 3.11
"tomli>=2.1.0; python_version < '3.11'",
]
lint = [
# lint
"pycln>=2.1.3",
"ruff>=0.4.8",
]
[tool.uv]
default-groups = ["dev", "lint"]
[project.urls]
Homepage = "https://github.com/mines-opt-ml/decoding-gpt"
Documentation = "https://github.com/mines-opt-ml/decoding-gpt"
Repository = "https://github.com/mines-opt-ml/decoding-gpt"
Issues = "https://github.com/mines-opt-ml/decoding-gpt/issues"
# ruff config
[tool.ruff]
exclude = ["__pycache__"]
[tool.ruff.format]
indent-style = "tab"
skip-magic-trailing-comma = false
# Custom export configurations
[tool.uv-exports]
args = [
"--no-hashes"
]
exports = [
# no groups, no extras, just the base dependencies
{ name = "base", groups = false, extras = false },
# all groups and extras
{ name = "all", filename="requirements.txt", groups = true, extras=true },
]