-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (130 loc) · 3.66 KB
/
pyproject.toml
File metadata and controls
141 lines (130 loc) · 3.66 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
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
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"jupyter>=1",
"lefthook>=2",
"pyright>=1.1.408",
"pytest-ordering",
"pytest-xdist[psutil]>=3",
"pytest>=9",
"ruff>=0.15",
"toml-sort>=0.24",
"ty>=0.0.22"
]
[project]
name = "efax"
version = "2.0.0"
description = "Exponential families for JAX"
readme = "README.rst"
requires-python = ">=3.12, <3.15"
license = "Apache-2.0"
authors = [{name = "Neil Girdhar", email = "mistersheik@gmail.com"}]
maintainers = [{name = "Neil Girdhar", email = "mistersheik@gmail.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
dependencies = [
"array_api_compat>=1.10",
"array_api_extra>=0.9.2",
"jax>=0.9.0",
"numpy>=2.0",
"opt-einsum>=3.4",
"optimistix>=0.0.9",
"optype[numpy]>=0.8.0",
"scipy-stubs>=1.15",
"scipy>=1.15",
"tfp-nightly>=0.25",
"tjax>=1.4.1",
"typing_extensions>=4.8"
]
[project.urls]
source = "https://github.com/NeilGirdhar/efax"
[tool.pyright]
include = ["efax", "tests", "examples"]
stubPath = ""
venvPath = "."
venv = ".venv"
reportMatchNotExhaustive = true
reportMissingParameterType = true
reportMissingTypeArgument = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"ARG001", # Unused function arg.
"ARG002", # Unused method arg.
"ARG003", # Unused class method arg.
"ARG004", # Unused static method arg.
"COM812", # Missing trailing comma.
"CPY001", # Missing copyright notice.
"D100", # Missing module docstring.
"D101", # Missing class docstring.
"D102", # Missing method docstring.
"D103", # Missing function docstring.
"D105", # Missing magic method docstring.
"D107", # Missing __init__ docstring.
"DOC201", # Missing return doc.
"DOC202", # Extraneous returns section.
"DOC402", # Missing yield doc.
"DOC501", # Missing raised exception doc.
"ERA001", # Commented-out code.
"FIX002", # TODO comment.
"G004", # Logging uses f-string.
"I001", # Unsorted imports.
"PD008", # Prefer .loc over .at.
"PGH003", # Use specific type-ignore codes.
"PLR0913", # Too many function arguments.
"PLR6301", # Method does not use self.
"Q000", # Prefer double quotes.
"RUF002", # Ambiguous Unicode character.
"RUF021", # Parenthesize mixed and/or.
"RUF069", # Float equality comparison.
"S101", # Assert used.
"TC001", # Move app import into TYPE_CHECKING.
"TC002", # Move third-party import into TYPE_CHECKING.
"TC003", # Move stdlib import into TYPE_CHECKING.
"TD002", # TODO missing author.
"TD003" # TODO missing issue link.
]
[tool.ruff.lint.flake8-errmsg]
max-string-length = 40
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"array_api_extra" = "xpx"
"ctypes" = "ct"
"datetime" = "dt"
"equinox" = "eqx"
"itertools" = "it"
"jax.numpy" = "jnp"
"jax.random" = "jr"
"jax.scipy.special" = "jss"
"networkx" = "nx"
"numpy.typing" = "npt"
"optimistix" = "optx"
"optype" = "op"
"optype.numpy" = "onp"
"optype.numpy.compat" = "npc"
"optype.typing" = "opt"
"pyqtgraph" = "pg"
"scipy.special" = "sc"
"seaborn" = "sns"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 8