-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
145 lines (129 loc) · 4.05 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel", "versioningit"]
[project]
name = "adaptive_scheduler"
description = "Run many `adaptive.Learner`s on many cores (>10k) using `mpi4py.futures`, `ipyparallel`, `dask-mpi`, or `process-pool`."
requires-python = ">=3.10"
dynamic = ["version"]
maintainers = [{ name = "Bas Nijholt", email = "[email protected]" }]
license = { text = "BSD-3" }
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
]
dependencies = [
"adaptive >= 0.14.1",
"cloudpickle",
"dill",
"ipyparallel",
"ipywidgets",
"itables",
"loky",
"numpy",
"pandas",
"psutil",
"pyarrow",
"pyzmq",
"rich",
"structlog",
"toolz",
"tqdm",
"versioningit",
]
[project.optional-dependencies]
all = ["dask-mpi", "mpi4py"]
test = ["pytest", "pytest-asyncio", "coverage", "pytest-cov"]
docs = [
"myst-nb",
"sphinx_fontawesome",
"sphinx",
"furo",
"myst-parser",
"emoji",
"sphinx-autodoc-typehints",
]
[project.urls]
homepage = "https://adaptive-scheduler.readthedocs.io/"
documentation = "https://adaptive-scheduler.readthedocs.io/"
repository = "https://github.com/basnijholt/adaptive-scheduler"
[project.readme]
content-type = "text/x-rst"
file = "README.rst"
[project.scripts]
adaptive-scheduler-launcher = "adaptive_scheduler._server_support.launcher:main"
[tool.setuptools.cmdclass]
sdist = "versioningit.cmdclass.sdist"
build_py = "versioningit.cmdclass.build_py"
[tool.versioningit]
[tool.versioningit.vcs]
method = "git"
match = ["v*"]
default-tag = "0.0.0"
[tool.versioningit.format]
dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
distance = "{version}.dev{distance}+{branch}.{vcs}{rev}"
distance-dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
[tool.versioningit.onbuild]
build-file = "adaptive_scheduler/_version.py"
source-file = "adaptive_scheduler/_version.py"
[tool.setuptools.packages.find]
include = ["adaptive_scheduler.*", "adaptive_scheduler"]
[tool.pytest.ini_options]
addopts = """
-vvv
--cov=adaptive_scheduler
--cov-report term
--cov-report html
--cov-report xml
--cov-fail-under=35
--asyncio-mode=auto
"""
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T20", # flake8-print
"ANN101", # Missing type annotation for {name} in method
"S101", # Use of assert detected
"PD901", # df is a bad variable name. Be kinder to your future self.
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"D402", # First line should not be the function's signature
"PLW0603", # Using the global statement to update `X` is discouraged
"D401", # First line of docstring should be in imperative mood
"SLF001", # Private member accessed
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
"PLR0913", # Too many arguments to function call (N > 5)
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...`
"TD003", # Missing issue link on the line following this TODO
"FIX002", # Line contains TODO"
"E501", # Line too long
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SLF001", "PLR2004", "PLR0915"]
"tests/test_examples.py" = ["E501"]
".github/*" = ["INP001"]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.10"