# Codecov Configuration # https://docs.codecov.com/docs/codecov-yaml # Coverage targets coverage: precision: 2 round: down range: "70...100" status: # Overall project coverage project: default: target: 80% threshold: 2% base: auto if_ci_failed: error # Coverage for changes in PR patch: default: target: 80% threshold: 5% base: auto if_ci_failed: error # Comment configuration for pull requests comment: layout: "reach,diff,flags,tree,files" behavior: default require_changes: false require_base: false require_head: true # Ignore paths ignore: - "tests/**/*" - "**/__pycache__/**/*" - "**/conftest.py" - "scripts/**/*" - "docs/**/*" - "examples/**/*" - "docker/**/*" - "**/__init__.py" # Flag configuration for different test types flags: unittests: paths: - src/ carryforward: true integration: paths: - src/ carryforward: true e2e: paths: - src/ carryforward: true # Component configuration for coverage by layer component_management: individual_components: - component_id: domain_layer name: Domain Layer paths: - src/domain/** - component_id: application_layer name: Application Layer paths: - src/application/** - component_id: infrastructure_layer name: Infrastructure Layer paths: - src/infrastructure/** - component_id: presentation_layer name: Presentation Layer paths: - src/presentation/** - component_id: config name: Configuration paths: - src/config/** - component_id: shared name: Shared Utilities paths: - src/shared/** # GitHub checks configuration github_checks: annotations: true # Notification configuration slack_app: false