-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathpyproject.toml
140 lines (131 loc) · 3.36 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "optax"
dynamic = ["version"]
description = "A gradient processing and optimization library in JAX."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [
{name = "Google DeepMind", email = "optax-dev@google.com"},
]
keywords = [
"python",
"machine learning",
"reinforcement-learning"
]
classifiers = [
"Environment :: Console",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"absl-py>=0.7.1",
"chex>=0.1.87",
# Keep jax, jaxlib versions in sync with .github/workflows/tests.yml
"jax>=0.4.27",
"jaxlib>=0.4.27",
"numpy>=1.18.0",
"etils[epy]",
]
[project.urls]
homepage = "https://github.com/google-deepmind/optax"
repository = "https://github.com/google-deepmind/optax"
documentation = "https://optax.readthedocs.io/"
[project.optional-dependencies]
test = [
"dm-tree>=0.1.7",
"flax>=0.5.3",
"scipy>=1.7.1",
"scikit-learn"
]
examples = [
"tensorflow-datasets>=4.2.0",
"tensorflow>=2.4.0",
"dp_accounting>=0.4",
"ipywidgets",
"flax",
]
docs = [
"sphinx>=6.0.0",
"sphinx-book-theme>=1.0.1", # Older versions fail to pin pydata-sphinx-theme
"sphinxcontrib-katex",
"sphinx-autodoc-typehints",
"ipython>=8.8.0", # 8.7.0 has ipython3 lexer error
"myst-nb>=1.0.0",
"matplotlib>=3.5.0",
"sphinx-gallery>=0.14.0",
"sphinx-collections>=0.0.1",
"tensorflow>=2.4.0",
"tensorflow-datasets>=4.2.0",
"flax",
"sphinx_contributors",
]
dp-accounting = [
"absl-py>=1.0.0",
"attrs>=21.4.0",
"mpmath>=1.2.1",
"numpy>=1.21.4",
"scipy>=1.7.1"
]
[tool.setuptools.packages.find]
include = ["README.md", "LICENSE"]
exclude = ["*_test.py"]
[tool.ruff.lint]
select = [
"F",
"E",
]
ignore = [
"E731", # lambdas are allowed
"E501", # don't check line lengths
"F401", # allow unused imports
"E402", # allow modules not at top of file
"E741", # allow "l" as a variable name
"E703", # allow semicolons (for jupyter notebooks)
]
[tool.pylint.messages_control]
disable = [
"bad-indentation",
"unknown-option-value",
"invalid-name",
"missing-function-docstring",
"missing-class-docstring",
"missing-module-docstring",
"no-member",
"too-many-locals",
"too-many-positional-arguments",
"no-else-return",
"line-too-long",
"too-many-arguments",
"no-value-for-parameter",
"duplicate-code",
"unused-argument",
"too-few-public-methods",
"wrong-import-order",
"unused-import",
"wrong-import-position",
"unnecessary-lambda-assignment",
"too-many-lines",
"too-many-statements",
"deprecated-class",
"redefined-builtin",
"used-before-assignment",
"undefined-variable",
"protected-access",
"not-callable",
"redefined-outer-name",
"too-many-instance-attributes",
"missing-final-newline",
"too-many-public-methods",
"import-error",
]