-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (94 loc) · 2.53 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (94 loc) · 2.53 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
[project]
name = "pyaml-cs-oa"
description = "PyAML control system plugin for ophyd-async"
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version"]
#license = {file = "LICENSE"}
keywords = ["Accelerator", "Synchrotron", "Operation", "Tuning", "Digital Twin", "Commissioning", "EPICS", "Tango" ]
maintainers = [
{name = "Yoshiteru Hidaka", email = "yhidaka@bnl.gov"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"accelerator-middle-layer>=0.2.2",
"pydantic>=2.0",
"ophyd-async",
]
[project.optional-dependencies]
# Test-only dependencies
test = [
"pytest",
]
# Optional EPICS support
epics = ["ophyd-async[ca,pva]"]
# Optional Tango support
tango = ["ophyd-async[tango]"]
# Developer-only dependencies
dev = [
"ophyd-async[ca,pva]",
"ophyd-async[tango]",
"pre-commit",
"ruff",
"mypy",
"pytest",
"copier"
]
# Extra dependencies for documentation
docs-extra = [
"ophyd-async[ca,pva]",
"ophyd-async[tango]",
]
[project.entry-points."pyaml.schemas"]
pyaml_cs_oa = "pyaml_cs_oa"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "pyaml_cs_oa/_version.py"
[tool.ruff]
line-length = 127
target-version = "py311"
[tool.ruff.lint]
# Basic, sane default set: pycodestyle (E,W), pyflakes (F),
# bugbear (B), imports (I), etc.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake8-bugbear
"I", # isort-style import sorting
]
ignore = [
"E203", # so it's compatible with black-style formatting
"F401", # unused imports
"F841", # unused local variables
"E741", # ambiguous variable name
"B024", # abstract class with no methods
]
[tool.ruff.format]
line-ending = "lf"
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.pytest.ini_options]
python_files = ["test_*.py"]
markers = [
"integration: tests that require external accelerator or control-system infrastructure",
"requires_control_system: tests that require live EPICS or Tango services",
]
[tool.mypy]
python_version = "3.11"
strict = false
ignore_missing_imports = true