-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coveragerc
More file actions
90 lines (69 loc) · 1.94 KB
/
.coveragerc
File metadata and controls
90 lines (69 loc) · 1.94 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[run]
# Source code directories to measure coverage for
source = src
# Omit specific files or patterns from coverage
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
*/dist-packages/*
*/.venv/*
*/venv/*
setup.py
*/pyrefactor.egg-info/*
# Enable branch coverage to track both line and branch coverage
branch = True
# Run tests in parallel for better performance
parallel = True
# Store coverage data file
data_file = .coverage
[report]
# Show missing lines in coverage report
show_missing = True
# Skip empty files in the report
skip_empty = True
# Skip files with 100% coverage in the report (optional)
skip_covered = False
# Precision for coverage percentage display
precision = 2
# Sort report by name
sort = Name
# Fail if coverage falls below these thresholds
# >90% for line + branch coverage as per user rules
# Focus on meaningful tests that drive better code design
fail_under = 90.0
# Exclude lines from coverage with these patterns
exclude_lines =
# Standard pragma for excluding lines
pragma: no cover
# Don't complain about missing debug-only code
def __repr__
def __str__
# Don't complain if tests don't hit defensive assertion code
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run
if __name__ == .__main__.:
if TYPE_CHECKING:
if typing.TYPE_CHECKING:
# Don't complain about abstract methods
@abstractmethod
@abc.abstractmethod
# Don't complain about overload definitions
@overload
@typing.overload
# Don't complain about ellipsis in protocol/stub definitions
\.\.\.
[html]
# Directory for HTML coverage report
directory = htmlcov
# Title for HTML report
title = PyRefactor Coverage Report
[xml]
# Output file for XML coverage report (for CI/CD)
output = coverage.xml
[json]
# Output file for JSON coverage report
output = coverage.json
pretty_print = True