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
|
[project]
name = "picostream"
version = "1.0.0"
description = "High-speed dual-channel data acquisition for PicoScope 5000a series"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"labdaemon>=1.0.0",
"numpy",
"numba",
"PyQt6>=6.0.0",
"pyqtgraph>=0.13.0",
"loguru>=0.6.0",
"zarr>=2.16.0",
"vispy>=0.14.0",
"picosdk",
]
[dependency-groups]
dev = [
"pyinstaller",
"pytest>=7.0.0",
"pytest-cov",
"ruff>=0.1.0",
"pyright>=1.1.0",
"snakeviz>=2.2.0",
]
[tool.pyright]
# Type checking rules to disable for FFI libraries and external tools
# reportAttributeAccessIssue: ctypes/FFI library attributes (picosdk SDK)
# reportOptionalSubscript: ctypes functions that can return None
# reportOptionalMemberAccess: FFI methods with optional returns
# reportCallIssue: calling possibly-None FFI function results
# reportOptionalOperand: arithmetic on possibly-None FFI results
reportAttributeAccessIssue = false
reportOptionalSubscript = false
reportOptionalMemberAccess = false
reportCallIssue = false
reportOptionalOperand = false
exclude = [
"picostream/test_buffered_stream.py",
"picostream/test_live_plotter.py",
"picostream/test_zarr_writer.py",
"picostream/tests/",
"picostream/v0_backup/",
]
[tool.coverage.run]
source = ["picostream"]
omit = [
"picostream/tests/",
"picostream/v0_backup/**",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.setuptools]
packages = ["picostream"]
[project.scripts]
picostream = "picostream.main:main"
[project.urls]
Repository = "https://github.com/yourusername/picostream"
|