Files
perl_d 1774cf363b
CI / lint (push) Successful in 32s
CI / test-with-coverage (push) Successful in 38s
CI / test (3.12) (push) Successful in 38s
CI / test (3.13) (push) Successful in 38s
CI / test (3.14) (push) Successful in 42s
CI / coverage-analysis (push) Skipped
fix: spelling
2026-10-30 13:46:33 +01:00

84 lines
2.0 KiB
TOML

[project]
name = "aare_bec_proto"
version = "0.1.0"
description = "Prototype of a BEC-integrated replacement for AareDAQ"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"aarecommon",
"aare_config",
"aarelcinfer_client==0.1.1a8",
"bec_lib>=3.130.3",
"bec-server>=3.130.3",
# bec_server imports bec_ipython_client at package import time but does not
# declare it, so it has to be pulled in explicitly.
"bec-ipython-client>=3.130.3",
"ophyd_devices>=1.46",
"pydantic>=2.11",
]
[project.optional-dependencies]
test = [
"basedpyright",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio",
"pytest-timeout",
"fakeredis[lua]",
"diff-cover",
"ruff>=0.15",
# mock smargopolo server used by the smargon device tests
"fastapi",
"uvicorn",
]
[project.scripts]
aare-bec-proto = "aare_bec_proto.main:main"
# Registers this package as a BEC plugin so that the device server can resolve
# `deviceClass: aare_bec_proto.devices.*` entries in the demo config.
[project.entry-points."bec"]
plugin_bec = "aare_bec_proto"
[project.entry-points."bec.messages"]
plugin_scans = "aare_bec_proto.messages"
[project.entry-points."bec.bl_states"]
plugin_scans = "aare_bec_proto.states"
[[tool.uv.index]]
name = "psi"
url = "https://gitea.psi.ch/api/packages/mx/pypi/simple"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
norecursedirs = ["scripts", ".venv", "logs", "docs"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = ["integration: tests that require external systems or secrets"]
[build-system]
requires = ["setuptools>=75.6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-data]
"aare_bec_proto.configs" = ["*.yaml"]
[tool.black]
line-length = 100
skip-magic-trailing-comma = true
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
[tool.ruff]
line-length = 100
[tool.ruff.lint]
isort.split-on-trailing-comma = false
[tool.ruff.format]
skip-magic-trailing-comma = true