-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.cfg
More file actions
38 lines (35 loc) · 1.49 KB
/
Copy pathsetup.cfg
File metadata and controls
38 lines (35 loc) · 1.49 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
[tool:pytest]
addopts = -vv -s
--color=yes
--doctest-modules
--cov=dotbot
--cov-config=setup.cfg
--cov-report=term
--cov-report=term-missing
--cov-report=xml
--ignore=dotbot/calibration
-m "not scenario"
testpaths = dotbot
markers =
scenario: end-to-end controller + simulator scenarios, deselected by default (pytest -m scenario)
asyncio_default_fixture_loop_scope = function
# Why --ignore dotbot/calibration: --doctest-modules walks every .py file
# to find doctests, importing each. dotbot/calibration/* imports textual +
# cv2, gated behind the [calibrate] extra for size reasons; the CI test env
# doesn't install it, so doctest discovery crashes on import. It has no
# doctests, so the ignore only skips import-failure noise; its real tests
# live in dotbot/tests/. (dotbot/firmware/* needs no ignore — its sole
# optional dep, intelhex, is now a core dependency.)
[coverage:run]
# dotbot/firmware/* is the hardware flash engine vendored from the
# standalone dotbot-provision package (and dotbot/calibration from
# dotbot-lh2-calibration); both shipped with ~0% host-test coverage and
# most of their logic is HIL-only. Excluded from coverage so the vendored
# bytes don't tank the signal for the rest of the codebase. Real host
# tests for the unit-testable parts are tracked as a separate follow-up.
omit =
dotbot/calibration/*
dotbot/firmware/*
[tool.black]
line-length = 79
skip-string-normalization = true