-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
149 lines (138 loc) · 3.92 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
[project]
name = "matbench-discovery"
version = "1.3.1"
description = "A benchmark for machine learning models on inorganic crystal"
authors = [{ name = "Janosh Riebesell", email = "[email protected]" }]
readme = "readme.md"
license = { file = "license" }
keywords = [
"force field",
"geometry optimization",
"high-throughput crystal structure stability prediction",
"interatomic potential",
"lattice vibrations",
"machine learning",
"materials discovery",
"phonons",
"thermal conductivity",
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.11"
dependencies = [
"ase>=3.23",
"numpy>=1.26",
"pandas>=2.2.2",
"plotly>=5.23",
"pymatgen>=2024.8.9",
"pymatviz[export-figs,df-pdf-export,df-svg-export]>=0.15",
"ruamel.yaml>=0.18.6",
"scikit-learn>=1.5",
"scipy>=1.13",
"tqdm>=4.66",
"wandb>=0.17",
]
[project.urls]
Homepage = "https://janosh.github.io/matbench-discovery"
Repo = "https://github.com/janosh/matbench-discovery"
Package = "https://pypi.org/project/matbench-discovery"
[project.optional-dependencies]
test = ["pytest-cov>=5", "pytest>=8.1"]
# how to specify git deps: https://stackoverflow.com/a/73572379
running-models = [
# aviary commented-out since dep on git repo raises "Invalid value for requires_dist"
# when attempting PyPI publish
# "aviary@git+https://github.com/CompRhys/aviary",
"alignn>=2024.1.14",
"chgnet>=0.3.0",
"jarvis-tools",
"m3gnet>=0.2.4",
"mace-torch>=0.3.6",
"maml>=2023.9.9",
"megnet>=1.3.2",
]
3d-structures = ["crystal-toolkit>=2023.11.3"]
plots = ["dash>=2.18"]
fetch-wbm-data = ["gdown>=5.1"]
make-wbm-umap = ["umap-learn>=0.5.5"]
symmetry = ["moyopy>=0.2.2"]
[tool.setuptools.packages.find]
include = ["matbench_discovery*"]
exclude = ["tests", "tests.*"]
[tool.setuptools.package-data]
matbench_discovery = ["**/*.yml", "../models/**/*.yml"]
[build-system]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"
[tool.ruff]
target-version = "py311"
output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401",
"B905", # zip without explicit strict
"BLE001",
"C408", # unnecessary-collection-call
"C901",
"COM812",
"D205", # blank-line-after-summary
"E731", # lambda-assignment
"EM101",
"EM102",
"FIX002",
"G004", # logging uses f-string
"INP001",
"ISC001",
"N806", # non-lowercase-variable-in-function
"PERF203", # try-except-in-loop
"PLC0414", # useless-import-alias
"PLR", # pylint refactor
"PLW2901", # redefined-loop-name
"PT006", # pytest-parametrize-names-wrong-type
"PTH",
"S108",
"S112", # try/except continue: consider logging the exception
"S310",
"S311",
"S603", # subprocess-without-shell-equals-true
"S607", # start-process-with-partial-path
"T201",
"TD",
"TRY003",
"TRY301",
]
pydocstyle.convention = "google"
isort.known-first-party = ["matbench_discovery"]
isort.known-third-party = ["wandb"]
isort.split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "FBT001", "FBT002", "S101"]
"matbench_discovery/plots.py" = ["ERA001"] # allow commented out code
"scripts/*" = ["D", "ERA001"]
"models/*" = ["D", "ERA001"]
"data/*" = ["ERA001", "S101"]
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
allow_redefinition = true
no_namespace_packages = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-p no:warnings"
[tool.pyright]
typeCheckingMode = "off"
reportPossiblyUnboundVariable = true
reportUnboundVariable = true
reportMissingImports = false