forked from proxystore/taps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
203 lines (186 loc) · 4.38 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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "webs"
version = "0.1.0"
authors = [
{name = "Greg Pauloski", email = "[email protected]"},
{name = "Globus Labs"},
]
description = "Workflows benchmark suite for task-based execution frameworks."
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"dask[distributed]",
"globus-compute-sdk",
"parsl",
"proxystore[redis]>=0.6.5",
"pydantic>=2",
"ray ; python_version<'3.12'",
]
[project.urls]
Homepage = "https://github.com/proxystore/webs"
Documentation = "https://proxystore.dev/webs"
Source = "https://github.com/proxystore/webs"
[project.optional-dependencies]
cholesky = ["numpy"]
docking = ["numpy", "pandas", "scikit-learn", "rdkit"]
fedlearn = ["numpy", "torch", "torchvision"]
moldesign = ["ase", "matplotlib", "numpy", "pandas", "rdkit==2023.9.6", "scikit-learn", "tqdm"]
montage = ["montage_wrapper", "pandas"]
dev = [
"covdefaults>=2.2",
"coverage",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"ruff>=0.2.0",
"tox",
"virtualenv",
]
docs = [
"black",
"mkdocs-click",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material==9.4.7",
"mkdocs-section-index",
"mkdocstrings==0.23.0",
"mkdocstrings-python==1.8.0",
"mike",
]
[tool.codespell]
skip = """
.git,
.github,
__pycache__,
build,
dist,
.*egg-info
"""
[tool.coverage.run]
plugins = ["covdefaults"]
omit = [
"examples",
"webs/wf/cholesky/*",
"webs/wf/docking/*",
"webs/wf/failure/*",
"webs/wf/fedlearn/*",
"webs/wf/mapreduce/*",
"webs/wf/moldesign/*",
"webs/wf/montage/*",
]
[tool.mypy]
plugins = [
"proxystore.mypy_plugin",
"pydantic.mypy",
]
python_version = "3.10"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "testing.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[tool.ruff]
line-length = 79
target-version = "py38"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
# See all rules here: https://beta.ruff.rs/docs/rules
select = [
# pyflakes
"F",
# pycodestyle
"E",
# mccabe
"C90",
# isort
"I",
# pep8-naming
"N",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-implicit-str-concat
"ISC",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# PyLint
"PL",
# ruff-specific
"RUF",
]
extend-ignore = [
# Do not require docstrings for modules, packages, magic methods, or __init__ methods
"D100", "D104", "D105", "D107",
# Allow builtin attribute shadowing
"A003",
# Ruff will change all([generator]) to all(generator) because the all/any
# generator expressions directly and the list comprehension is not needed.
# However, coverage marks unfinished generators as not covered and
# all/any can early exit before exhausting the generator.
"C419",
# Allow pytest.raises() without match
"PT011",
# Allow nested contexts
"SIM117",
]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["wbench", "test", "testing"]
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"tests/**.py" = ["D10"]
"testing/**.py" = ["D10"]
"tests/conftest.py" = ["F401"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools.packages.find]
exclude = ["tests*", "testing*"]
namespaces = false