-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
73 lines (63 loc) · 1.92 KB
/
Copy pathcodecov.yml
File metadata and controls
73 lines (63 loc) · 1.92 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
# Codecov Configuration for Squiggy
# https://docs.codecov.com/docs/codecovyml-reference
# Notification settings (disable emails)
notify:
email: off
# Coverage calculation settings
coverage:
precision: 2 # Decimal places for coverage percentage
round: down # Round coverage percentages down
range: 70..100 # Green at 100%, red at 70%
# Status checks that appear on PRs
status:
# Overall project coverage
project:
default:
target: auto # Maintain current coverage level
threshold: 0% # Don't fail if coverage stays same
informational: true # Don't block PRs
# Coverage on changed code (patch)
patch:
default:
target: 70% # Encourage good coverage on new code
threshold: 0% # Don't fail, just inform
informational: true # Don't block PRs
# PR comment configuration
comment: off # Disable PR comments
# Paths to ignore in coverage calculation
ignore:
- "tests/**/*" # Don't measure coverage of test files
- "build/**/*" # Don't measure build scripts
- "docs/**/*" # Don't measure documentation
- "**/conftest.py" # Don't measure pytest fixtures
- "setup.py" # Don't measure setup script
- "legacy/**/*" # Don't measure archived Qt app code
# Flag-based coverage (track Python and TypeScript separately)
flags:
python:
paths:
- squiggy/
carryforward: true # Use previous coverage if upload fails
typescript:
paths:
- src/
carryforward: true
# Component-based coverage (optional - can expand later)
component_management:
default_rules:
statuses:
- type: project
target: auto
individual_components:
- component_id: backend
name: "Python Backend"
paths:
- squiggy/**
- component_id: frontend
name: "TypeScript Extension"
paths:
- src/backend/
- src/views/
- src/webview/
- src/extension.ts
flag: typescript