-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (159 loc) · 4.83 KB
/
pyproject.toml
File metadata and controls
170 lines (159 loc) · 4.83 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
[build-system]
requires = ["setuptools>=42", "setuptools-git-versioning", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "alab_gpss"
description = "Code to operate the GPSS"
#readme = "README.md"
keywords = ["self-driving labs", "autonomous", "synthesis", "materials", "inorganic", "solid-state"]
authors = [
{ name = "Yuxing Fei", email = "yuxingfei@berkeley.edu" },
]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
"alab-control@git+https://github.com/CederGroupHub/alab_control",
"alab-management@git+https://github.com/CederGroupHub/alab_management",
"uvicorn",
"fastapi",
"ReactionCompleter@git+https://github.com/idocx/ReactionCompleter",
"material_parser@git+https://github.com/idocx/MaterialParser",
"easy-biologic>=0.4.0",
"keyboard>=0.13.5",
"qrcode==8.2",
"dara-xrd>=1.1.4",
"impedance>=1.7.1",
"asgiref>=3.8.1",
"ipykernel>=7.1.0",
"plotly>=5.24.0",
"kaleido>=1.1.0",
"litellm>=1.80.0",
"nbformat>=5.10.4",
"numpy>=2",
"openai-agents>=0.6.0",
"pandas>=2.3.3",
"pydantic>=2.8.2",
"pymatgen>=2025.10.7",
"pymongo>=3.1",
"Flask>=3.0.0",
"botorch>=0.16.1",
"scikit-learn>=1.7.2",
"gpytorch>=1.14.3",
"uncertainties>=3.2.3",
"json-repair>=0.55.0",
"matminer",
"networkx>=3.4.2",
"bson>=0.5.10",
"requests>=2.32.5",
"seaborn>=0.13.2",
]
[project.optional-dependencies]
strict = [
"alab-control@git+https://github.com/CederGroupHub/alab_control",
"alab-management@git+https://github.com/CederGroupHub/alab_management",
"uvicorn==0.34.1",
"fastapi==0.115.12",
"easy-biologic==0.4.0",
]
tests = [
"pytest==8.0.1",
"pytest-cov==4.1.0",
]
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[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:',
]
[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.ruff]
target-version = "py39"
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
]
lint.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
"PLE0704", # Checks for bare raise statements outside of exception handlers
]
lint.pydocstyle.convention = "google"
lint.isort.known-first-party = ["alab_one"]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["ANN201", "D", "S101"]
[tool.setuptools.package-data]
alab_one = ["py.typed"]
[tool.setuptools-git-versioning]
enabled = true