forked from bluesky/blop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (128 loc) · 4.2 KB
/
pyproject.toml
File metadata and controls
141 lines (128 loc) · 4.2 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "blop"
description = "Beamline optimization with machine learning"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "Max Rakitin", email = "mrakitin@bnl.gov" },
{ name = "Thomas Morris", email = "tmorris@bnl.gov" },
{ name = "Thomas Hopkins", email = "thopkins1@bnl.gov" },
]
maintainers = [
{ name = "Max Rakitin", email = "mrakitin@bnl.gov" },
{ name = "Thomas Morris", email = "tmorris@bnl.gov" },
{ name = "Thomas Hopkins", email = "thopkins1@bnl.gov" },
{ name = "Jessica Moylan", email = "jmoylan1@bnl.gov" },
{ name = "Jennefer Maldonado", email = "jmaldonad@bnl.gov" },
{ name = "Roman Chernikov", email = "rcherniko@bnl.gov" },
]
requires-python = ">=3.10"
dependencies = [
"ax-platform>=1.1.0,<1.3",
"bluesky>=1.14.2",
"bluesky-queueserver-api>=0.0.12",
"torch",
"botorch>=0.16.0",
"gpytorch",
"scipy",
"networkx>=3",
"numpy",
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest",
"ipykernel",
"ruff",
"nbstripout",
"pre-commit",
"pandas-stubs",
"coverage",
"databroker>=1.2.0,<1.3",
"tiled[all]>=0.1.1",
"matplotlib",
"pyqt5",
"ophyd",
"h5py",
"area-detector-handlers",
"bluesky-tiled-plugins",
"xrt>=1.6.1,<2",
]
docs = [
"numpydoc",
"sphinx-copybutton",
"myst-nb",
"furo",
"jupytext",
"databroker>=1.2.0,<1.3",
"tiled[all]>=0.1.1",
"matplotlib",
"pyqt5",
"ophyd",
"h5py",
"area-detector-handlers",
"bluesky-tiled-plugins",
"xrt>=1.6.1,<2",
]
[project.urls]
Homepage = "https://github.com/NSLS-II/blop"
Documentation = "https://nsls-ii.github.io/blop"
"Bug Reports" = "https://github.com/NSLS-II/blop/issues"
[tool.hatch]
version.source = "vcs"
[tool.hatch.build]
artifacts = ["src/blop/_version.py"]
[tool.hatch.build.targets.wheel]
sources = ["src"]
[tool.hatch.build.hooks.vcs]
version-file = "src/blop/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.ruff]
src = ["src", "examples", "docs/source/tutorials"]
line-length = 125
lint.select = [
"B", # flake8-bugbear - https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"C4", # flake8-comprehensions - https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e
"F", # pyflakes rules - https://docs.astral.sh/ruff/rules/#pyflakes-f
"W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w
"I", # isort - https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up
"SLF", # self - https://docs.astral.sh/ruff/settings/#lintflake8-self
"PLC2701", # private import - https://docs.astral.sh/ruff/rules/import-private-name/
"LOG015", # root logger call - https://docs.astral.sh/ruff/rules/root-logger-call/
"S101", # assert - https://docs.astral.sh/ruff/rules/assert/
"D", # docstring - https://docs.astral.sh/ruff/rules/#pydocstyle-d
]
lint.ignore = [
"D", # TODO: Add docstrings, then enforce these errors
"SLF001", # TODO: Fix private member access, https://github.com/NSLS-II/blop/issues/94
"B901", # return-in-generator - https://docs.astral.sh/ruff/rules/return-in-generator/
]
lint.preview = true # so that preview mode PLC2701, and LOG015 is enabled
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"src/blop/tests/**/*" = ["S101", "SLF001", "D"]
# Ignore F821: undefined name '...' since the ipython profiles are dynamically loaded into the namespace
"docs/**/*" = ["F821"]
"examples/**/*" = ["F821"]
[tool.pyright]
ignore = [
"src/blop/sim/",
"src/blop/tests/",
"src/blop/bayesian/", # TODO: Remove this and fix type errors
"src/blop/ax/qserver_agent.py", # TODO: Remove this and fix type errors
]