-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (115 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (115 loc) · 2.89 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
[project]
name = "accelerator-middle-layer"
description = "Python Accelerator Middle Layer"
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version"]
#license = {file = "LICENSE"}
keywords = ["Accelerator", "Synchrotron", "Operation", "Tuning", "Digital Twin", "Commissioning", ]
maintainers = [
{name = "Simone Maria Liuzzo", email = "simone.liuzzo@esrf.fr"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy>=1.21.0",
"scipy>=1.7.3",
"accelerator-toolbox>=0.6.1",
"PyYAML>=6.0.2",
"pydantic>=2.11.7",
"accelerator-commissioning==1.3.0", #pySC
"h5py",
"matplotlib"
]
[project.optional-dependencies]
tango-pyaml = [
"tango-pyaml",
]
cs-oa-epics = [
"pyaml-cs-oa[epics]",
]
cs-oa-tango = [
"pyaml-cs-oa[tango]",
]
test = [
"pytest>=7.4",
"pytest-cov>=3.0",
]
doc = [
"sphinx ~= 8.1",
"myst-parser",
"myst-nb",
"pydata-sphinx-theme",
"sphinx_design",
"sphinx-copybutton",
]
dev = [
"pre-commit",
"ruff",
"mypy",
"pytest",
]
[project.urls]
Homepage = "https://github.com/python-accelerator-middle-layer/pyaml"
Documentation = "https://python-accelerator-middle-layer.github.io/pyaml/"
Repository = "https://github.com/python-accelerator-middle-layer/pyaml.git"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["pyaml"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.hooks.vcs]
version-file = "pyaml/_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.mypy]
python_version = "3.11"
strict = false
ignore_missing_imports = true
[tool.pytest.ini_options]
markers = [
"integration: tests requiring an external integration runtime",
]