-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
236 lines (214 loc) · 4.59 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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
[project]
name = "ebcc"
version = "1.5.0"
description = "Coupled cluster calculations on electron-boson systems"
keywords = [
"quantum", "chemistry",
"electronic", "structure",
"coupled", "cluster",
"electron", "boson",
"ccsd",
]
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
]
dependencies = [
"numpy>=1.19.0",
"scipy>=1.11.0",
"pyscf>=2.0.0",
"h5py>=3.0.0",
]
[build-system]
requires = [
"setuptools>=61.0.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["ebcc"]
[project.optional-dependencies]
numpy = []
tensorflow = [
"tensorflow>=2.0.0",
"opt_einsum>=3.3.0",
]
jax = [
"jax>=0.2.0",
"opt_einsum>=3.3.0",
"pyscfad>=0.1.8",
]
cupy = [
"cupy>=9.0.0",
"opt_einsum>=3.3.0",
]
dev = [
"black>=22.6.0",
"isort>=5.10.1",
"flake8>=3.8.4",
"flake8-pyproject>=1.2.3",
"flake8-bugbear>=23.0.0",
"flake8-docstrings>=1.6.0",
"mypy>=1.8.0",
"coverage[toml]>=5.5.0",
"pytest>=6.2.4",
"pytest-cov>=4.0.0",
"mkdocs>=1.6.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-section-index>=0.3.0",
"mkdocs-autorefs>=1.0.0",
"mkdocs-include-markdown-plugin>=6.2.0",
"mkdocstrings>=0.25.0",
"mkdocstrings-python>=1.10.0",
]
[tool.black]
line-length = 100
target-version = [
"py37",
"py38",
]
include = "ebcc"
exclude = """
/(
| ebcc/codegen
| __pycache__
| .git
)/
"""
[tool.isort]
atomic = true
profile = "black"
line_length = 100
src_paths = [
"ebcc",
]
skip_glob = [
"*/__pycache__/*",
"ebcc/codegen/*",
"*/__init__.py",
]
[tool.unimport]
include_star_import = true
ignore_init = true
include = '\.pyi?$'
exclude = """
/(
| __init__.py
)/
"""
[tool.flake8]
max-line-length = 100
max-doc-length = 100
ignore = [
"E203", # Whitespace before ':'
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"W503", # Line break before binary operator
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"B007", # Loop control variable not used within the loop body
]
per-file-ignores = [
"__init__.py:E402,W605,F401,F811,D103,D212,D415",
]
docstring-convention = "google"
count = true
include = "ebcc"
exclude = """
/(
| ebcc/codegen
| __pycache__
| .git
)/
"""
[tool.mypy]
python_version = "3.10"
exclude = """
/(
| ebcc/codegen
| __pycache__
| .git
)/
"""
[[tool.mypy.overrides]]
module = "ebcc.*"
strict = true
ignore_missing_imports = true
disallow_subclassing_any = false
implicit_reexport = true
warn_unused_ignores = false
allow_redefinition = true
[[tool.mypy.overrides]]
module = "ebcc.codegen.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "pyscf.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "scipy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "h5py.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "cupy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jax.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tensorflow.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "ctf.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pyscfad.*"
ignore_missing_imports = true
[tool.coverage.run]
branch = true
source = [
"ebcc",
]
omit = [
"ebcc/codegen/gen_*.py",
"ebcc/codegen/wick.py",
"ebcc/codegen/common.py",
"ebcc/codegen/convenience_extra.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise NotImplementedError",
"raise util.ModelNotImplemented",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "cov_html"
[tool.pytest.ini_options]
addopts = "--durations=0"
testpaths = [
"tests",
]
markers = [
# Slow tests:
"slow",
# Tests compared to another code:
"reference",
# Tests compared to another `ebcc` version:
"regression",
]