Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (47 loc) · 1.69 KB
/
Copy pathpyproject.toml
File metadata and controls
50 lines (47 loc) · 1.69 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
# Project configuration.
# Pytest config lives here so `pytest` from repo root just works.
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-ra", # short summary for all non-passing outcomes
"--strict-markers", # unknown @pytest.mark raises
"--strict-config", # unknown config keys raise
"-p", "no:cacheprovider", # no .pytest_cache litter in the tree
# test_hardware.py is a CLI tool whose functions are named `test_*` for
# argparse dispatch — not a pytest module. Skip it so the suite isn't
# polluted with "fixture 'args' not found" errors.
]
markers = [
"L1_algorithms: pure algorithm tests, no I/O, no hardware",
"L2_orchestration: config and orchestration tests, no hardware",
"L3_io: single-threaded I/O tests, may need mock hardware",
"L4_concurrency: multi-threaded orchestration tests, may need mock hardware",
"L5_ui: UI tests, require Qt (likely skipped headless)",
"slow: tests that take > 5 seconds",
"gpu: tests that require CUDA / CuPy",
"hardware: tests that require real hardware (camera, projector, GPIO)",
"golden: characterization tests asserting against committed reference output",
]
filterwarnings = [
"ignore::DeprecationWarning:napari.*",
"ignore::DeprecationWarning:pygame.*",
]
[tool.coverage.run]
branch = true
source = ["STIMscope/STIMViewer_CRISPI/CS/core"]
omit = [
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]