-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
182 lines (168 loc) · 5.3 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[project]
name = "reaction-network"
description = "Reaction-network is a Python package for synthesis planning and predicting chemical reaction pathways in inorganic materials synthesis."
readme = "README.md"
keywords = [
"reaction",
"network",
"computational",
"graph",
"inorganic",
"materials",
"retrosynthesis",
"synthesis",
"planning",
]
license = { text = "modified BSD" }
authors = [{ name = "Matthew McDermott", email = "mcdermott@lbl.gov" }]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
dependencies = [
"pymatgen>=2023.11.12",
"numba>=0.58.1",
"jobflow>=0.1.15",
"ray>=2.9.0",
"rustworkx>=0.13.2",
]
[project.optional-dependencies]
docs = [
"autodoc_pydantic==2.0.1",
"furo==2023.9.10",
"ipython==8.16.1",
"myst_parser==2.0.0",
"nbsphinx==0.9.3",
"sphinx-copybutton==0.5.2",
"sphinx==7.2.6",
]
tests = [
"mp-api==0.42.1", # required for testing get_entry_set job
"pytest==8.3.3",
"pytest-cov==5.0.0",
"pytest-xdist==3.6.1",
]
strict = [
"pymatgen==2024.6.10",
"numba==0.59.1",
"numpy==1.26.4",
"jobflow==0.1.18",
"ray==2.35.0",
"rustworkx==0.15.1",
]
[project.urls]
homepage = "https://materialsproject.github.io/reaction-network/"
documentation = "https://materialsproject.github.io/reaction-network/"
repository = "https://github.com/materialsproject/reaction-network"
changelog = "https://github.com/materialsproject/reaction-network/blob/main/docs/CHANGELOG.md"
[tool.coverage.run]
include = ["src/*"]
parallel = true
branch = false
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_also = [
'\#\s*pragma: no cover',
'^\s*assert False(,|$)',
'if typing.TYPE_CHECKING:',
'^\s*@overload( |$)',
'if TYPE_CHECKING:',
]
omit = [
"src/rxn_network/data/nist/generate_janaf_data.py",
"src/rxn_network/network/visualize.py",
"src/rxn_network/pathways/plotting.py",
]
[tool.ruff]
target-version = "py39"
line-length = 120
extend-exclude = ["*.ipynb", "tests/**"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"EXE", # flake8-executable
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT003", # boolean-positional-value-in-call
"FLY", # flynt
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PD", # pandas-vet
"PERF", # perflint
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
ignore = [
"B023", # Function definition does not bind loop variable
"B028", # No explicit stacklevel keyword argument found
"B904", # Within an except clause, raise exceptions with ...
"C408", # unnecessary-collection-call
"D105", # Missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"PD011", # pandas-use-of-dot-values
"PD901", # pandas-df-variable-name
"PERF203", # try-except-in-loop
"PERF401", # manual-list-comprehension (TODO fix these or wait for autofix)
"PLR", # pylint-refactor
"PLW2901", # Outer for loop variable overwritten by inner assignment target
"PT004", # pytest-missing-fixture-name-underscore
"PT006", # pytest-parametrize-names-wrong-type
"PT013", # pytest-incorrect-pytest-import
"PYI024", # collections-named-tuple (TODO should maybe fix these)
"RUF012", # Disable checks for mutable class args. This is a non-problem.
"RUF013", # implicit-optional
"SIM105", # Use contextlib.suppress(OSError) instead of try-except-pass
]
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/schema.py" = ["FA", "TCH", "UP007"]
[tool.mypy]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
no_implicit_optional = false
follow_imports = "skip"
disable_error_code = "annotation-unchecked"
[tool.pytest]
addopts = "--durations=10"
[tool.pytest.ini_options]
addopts = "-n auto"
[tool.setuptools.package-data]
rxn_network = ["py.typed"]
[tool.setuptools-git-versioning]
enabled = true