-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.coveragerc
More file actions
54 lines (52 loc) · 1.65 KB
/
Copy path.coveragerc
File metadata and controls
54 lines (52 loc) · 1.65 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
; F02 closure — honest coverage configuration.
;
; The previous .coveragerc declared `source = core, backtest, execution`
; while [run] omit re-excluded 13 sub-packages of core (accelerators,
; agent, altdata, config, events, indicators, messaging, metrics, phase,
; reporting, strategies, utils, data/adapters). The reported coverage
; number therefore measured roughly two-thirds of the declared source —
; the classic F02 false-confidence pattern.
;
; This file replaces that pattern. Source declares the surfaces this
; profile observes. Omit excludes ONLY artefacts that are not source
; (tests, generated stubs, empty package markers). When a sub-package
; is intentionally not measured by this profile, that decision is
; expressed by REMOVING it from `source`, not by smuggling it into omit.
;
; Subsystems not measured by this profile remain observable:
; they will be added back to `source` when their dedicated profile / CI
; job lands. Until then, the coverage number reflects only what is
; actually instrumented — by design, lower than the previous lying
; total, but truthful.
;
; Rule: every path under `omit` must NOT be a child of any path under
; `source`. The regression test `tests/audit/test_coverage_honesty.py`
; enforces this.
[run]
branch = True
source =
core
backtest
execution
omit =
tests/**
conftest.py
**/__init__.py
**/generated/**
**/_pb2.py
**/_pb2_grpc.py
[report]
show_missing = True
precision = 2
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if TYPE_CHECKING:
omit =
tests/**
conftest.py
**/__init__.py
**/generated/**
**/_pb2.py
**/_pb2_grpc.py