-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (61 loc) · 1.45 KB
/
pyproject.toml
File metadata and controls
73 lines (61 loc) · 1.45 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lsps"
version = "0.1.0"
description = "Laser Scanning Photostimulation control system"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.11"
dependencies = [
"numpy>=1.26",
"opencv-python>=4.9",
"pyserial>=3.5",
"neo>=0.13",
"scipy>=1.13",
"pyside6>=6.7",
]
[project.scripts]
lsps = "lsps.ui.app:main"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-qt>=4.4",
"pytest-mock>=3.14",
"coverage>=7.5",
"ruff>=0.4",
]
[tool.hatch.build.targets.wheel]
packages = ["src/lsps"]
[tool.pytest.ini_options]
testpaths = ["tests"]
log_level = "WARNING"
markers = [
"integration: tests that exercise the full Python↔firmware protocol boundary",
]
[tool.coverage.run]
source = ["src/lsps"]
omit = ["tests/*"]
[tool.coverage.report]
show_missing = true
[tool.ruff]
line-length = 99
target-version = "py311"
[tool.ruff.lint]
# E/W = pycodestyle errors/warnings, F = pyflakes, I = isort,
# UP = pyupgrade, B = flake8-bugbear, C4 = flake8-comprehensions
select = ["E", "W", "F", "I", "UP", "B", "C4"]
ignore = [
"E501", # line too long — handled by formatter, not enforced as error
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # allow assert in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[dependency-groups]
dev = [
"pytest-cov>=7.0.0",
"ruff>=0.15.4",
]