-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (101 loc) · 2.23 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (101 loc) · 2.23 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling>=1.25", "hatch-vcs>=0.4"]
build-backend = "hatchling.build"
[project]
name = "smartclip"
description = "Adaptive gradient clipping for PyTorch, TensorFlow, and JAX"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "SmartClip Maintainers" },
]
classifiers = [
"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",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
]
dependencies = []
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/stefangordon/smartclip"
Issues = "https://github.com/stefangordon/smartclip/issues"
[project.optional-dependencies]
torch = [
"pytorch-lightning>=2.3,<3",
"transformers>=4.42,<5",
]
tf = []
jax = [
"flax>=0.8",
"optax>=0.2",
]
bench = [
"matplotlib>=3.8",
"cycler>=0.12",
"python-dateutil>=2.8",
"kiwisolver==1.4.7",
]
test = [
"pytest>=8",
"pytest-cov>=5",
"hypothesis>=6",
"pytest-xdist>=3",
"pytest-randomly>=3",
"pytest-timeout>=2",
"numpy>=1.26",
]
dev = [
"ruff>=0.6",
"mypy>=1.10",
"types-setuptools",
"pre-commit>=3.7",
"build>=1.2",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.25",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
include = [
"smartclip",
"tests",
"README.md",
"LICENSE",
]
[tool.hatch.build.targets.wheel]
packages = ["smartclip"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E402", "E501"]
[tool.ruff.format]
quote-style = "preserve"
indent-style = "space"
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_configs = true
disallow_any_generics = true
warn_redundant_casts = true
warn_return_any = true
no_implicit_optional = true
pretty = true
[tool.pytest.ini_options]
addopts = "-q --maxfail=1 --disable-warnings"
testpaths = ["tests"]
markers = [
"integration: marks tests that require real framework dependencies",
]