-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove importlib and enforce trailing whitespace
- Loading branch information
1 parent
94fe9ee
commit e37cba1
Showing
2 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
[project] | ||
name = "torch-optimi" | ||
version = "0.2.0" | ||
authors = [{name = "Benjamin Warner", email = "[email protected]"}] | ||
authors = [{ name = "Benjamin Warner", email = "[email protected]" }] | ||
description = "Fast, Modern, & Low Precision PyTorch Optimizers" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
license = { file = "LICENSE" } | ||
keywords = ["Optimizers", "PyTorch", "Deep Learning"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
|
@@ -15,14 +14,30 @@ classifiers = [ | |
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence' | ||
"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"] | ||
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" | ||
|
@@ -36,9 +51,22 @@ 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"] | ||
markers = [ | ||
"cpu", | ||
"cuda", | ||
"adam", | ||
"adan", | ||
"lion", | ||
"radam", | ||
"ranger", | ||
"sgd", | ||
"stableadam", | ||
] | ||
|
||
[tool.ruff] | ||
line-length = 140 | ||
|
@@ -49,12 +77,12 @@ src = ["optimi"] | |
exclude = ["tests", "docs"] | ||
|
||
[tool.ruff.lint] | ||
select = ["E", "W", "F", "I", "D", "UP"] | ||
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"] | ||
"utils.py" = ["I002"] |