-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (181 loc) · 4.77 KB
/
Copy pathpyproject.toml
File metadata and controls
198 lines (181 loc) · 4.77 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[project]
name = "jaqmc"
version = "0.1.0"
description = "JAX accelerated Quantum Monte Carlo"
license = "Apache-2.0"
license-files = ["LICENSE", "licenses/*"]
readme = "README.md"
keywords = [
"quantum monte carlo",
"neural network wavefunction",
"variational monte carlo",
"computational physics",
"electronic structure",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
maintainers = [
{ name = "ByteDance Seed" }
]
requires-python = ">=3.12"
dependencies = [
"click>=8.3.1",
"flax>=0.10.4",
"fsspec>=2026.2.0",
"h5py>=3.15.1",
"jax>=0.4.36,<=0.9.1",
"kfac-jax==0.0.8",
"numpy>=2.3.5",
"pyserde>=0.31.1",
"optax>=0.2.5",
"pygments>=2.19.2",
"pyscf>=2.11.0",
"universal-pathlib>=0.3.6",
"pandas>=3.0.1",
]
[project.optional-dependencies]
cuda12 = ["jax[cuda12]>=0.4.36"]
cuda12_local = ["jax[cuda12_local]>=0.4.36"]
cuda13 = ["jax[cuda13]>=0.7.0"]
cuda13_local = ["jax[cuda13_local]>=0.7.0"]
[tool.uv]
conflicts = [
[
{ extra = "cuda12" },
{ extra = "cuda12_local" },
{ extra = "cuda13" },
{ extra = "cuda13_local" },
]
]
[project.scripts]
jaqmc = "jaqmc.app.cli:cli"
[project.urls]
Repository = "https://github.com/bytedance/jaqmc.git"
Issues = "https://github.com/bytedance/jaqmc/issues"
Documentation = "https://jaqmc.readthedocs.io/latest"
[dependency-groups]
lint = [
"ruff>=0.14.7",
"mypy>=1.19.0",
]
test = [
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.6.1",
]
analysis = [
"ipykernel>=7.2.0",
"matplotlib>=3.10.8",
"pandas>=3.0.1",
"pyblock>=0.6",
]
docs = [
{include-group = "analysis"},
"myst-nb>=1.3.0",
"myst-parser>=4.0.1",
"sphinx>=8.2.3",
"sphinx-autobuild>=2025.8.25",
"sphinx-autodoc-typehints>=3.6.1",
"sphinx-book-theme>=1.4.0",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"sphinx-llm>=0.4.1",
"sphinx-notfound-page>=1.1.0",
"sphinx-reredirects>=1.1.0",
"types-docutils>=0.22.3.20251115",
]
types = [
"types-pyyaml>=6.0.12.20250915",
]
dev = [
{include-group = "lint"},
{include-group = "test"},
{include-group = "types"},
]
[build-system]
requires = ["uv_build>=0.11.0,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = ["jaqmc", "jaqmc_legacy"]
[tool.mypy]
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = [
"docs",
"tests/legacy",
"src/jaqmc_legacy",
"legacy_examples",
]
[[tool.mypy.overrides]]
module = "tests.*"
check_untyped_defs = true
[tool.ruff]
target-version = "py312"
exclude = ["src/jaqmc_legacy", "legacy_examples"]
[tool.ruff.lint]
# CPY and DOC rules are currently in preview
preview = true
# Allow en-dash (U+2013)
allowed-confusables = ["–"]
select = [
"F", "E", "W", # pyflakes and pycodestyle
"D", "DOC", # pydocstyle and pydoclint
"G", "LOG", # logging rules
"RUF", # ruff rules
"I", # isort
"CPY", # copyright header
"ERA", # commented code
"FURB", "UP", # modernize code
"SIM", "C90", # simplify code
"PLW", "PLE", # pylint rules
]
ignore = [
"D1", # Allow missing docstring
"RUF009", # Allow functions creating Fields in dataclass
"PLW1641", # False possitive for dataclass
"FURB140", # Suggested to be ignored on Python 3.12
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"DOC",
"E731", # allow assigning lambda
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest]
filterwarnings = [
# Third party libraries that have not addressed this warnings in new JAX
'ignore:.*device_put_replicated.*:DeprecationWarning:kfac_jax.*',
# We can do nothing about this because no replacement is planned
# If this is removed one day, all wa can do is to copy old code over and run
'ignore:.*jax.scipy.special.lpmn_values.*:DeprecationWarning:jaqmc.*',
]
testpaths = ["src/jaqmc", "tests"]
addopts = ["--doctest-modules"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"]
[tool.coverage.run]
branch = true
parallel = true
source = ["jaqmc"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abc.abstractmethod",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[[tool.jupytext.formats]]
"notebooks/" = "ipynb"
"docs/" = "md:myst"