-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
88 lines (78 loc) · 2.29 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
79
80
81
82
83
84
85
86
87
88
[project]
name = "torch-optimi"
authors = [{ name = "Benjamin Warner", email = "[email protected]" }]
description = "Fast, Modern, & Low Precision PyTorch Optimizers"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
keywords = ["Optimizers", "PyTorch", "Deep Learning"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
dependencies = ["torch>=1.13", "packaging>=21.3"]
dynamic = ["version"]
[project.optional-dependencies]
test = ["pytest>=8.1.1", "ruff>=0.3.2", "pytest-md>=0.2.0", "numpy>=1.23"]
docs = [
"mkdocs-material>=9.4.7",
"mkdocstrings>=0.24.1",
"mkdocstrings-python>=1.8.0",
"black>=24.2.0",
"mkdocs-caption>=1.0.0",
]
dev = [
"pytest>=8.1.1",
"ruff>=0.3.2",
"mkdocs-material>=9.4.7",
"mkdocstrings>=0.24.1",
"mkdocstrings-python>=1.8.0",
"black>=24.2.0",
"mkdocs-caption>=1.0.0",
]
[project.urls]
"Homepage" = "https://optimi.benjaminwarner.dev"
"Bug Reports" = "https://github.com/warner-benjamin/optimi/issues"
"Source" = "https://github.com/warner-benjamin/optimi"
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["optimi"]
[tool.setuptools.dynamic]
version = { attr = "optimi.__version__" }
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"cpu",
"cuda",
"adam",
"adan",
"lion",
"radam",
"ranger",
"sgd",
"stableadam",
]
[tool.ruff]
line-length = 140
extend-exclude = ["tests", "docs"]
src = ["optimi"]
[tool.ruff.format]
exclude = ["tests", "docs"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "D", "UP", "W291"]
extend-ignore = ["D100", "D107", "D206", "D300", "E111", "E114", "E117"]
isort.required-imports = ["from __future__ import annotations"]
pycodestyle.max-doc-length = 100
pydocstyle.convention = "google"
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["D104", "F401", "I002"]
"utils.py" = ["I002"]